64 lines
1.8 KiB
TypeScript
64 lines
1.8 KiB
TypeScript
import GVGTeam, { GVGTeamType } from "../../db/GVGTeam";
|
||
|
||
// 积分点分类统计,1-3级积分点代表从小到大
|
||
export class LeagueCityPoint {
|
||
// 玩家id
|
||
roleId: string;
|
||
// 军团id
|
||
guildCode: string;
|
||
// 联军id
|
||
leagueCode: string;
|
||
|
||
// 计分点数
|
||
pointCnt1: number;
|
||
pointCnt2: number;
|
||
pointCnt3: number;
|
||
// 击杀守卫数
|
||
guardCnt1: number;
|
||
// 击杀投石车数
|
||
catapultCnt1: number;
|
||
}
|
||
|
||
// 队伍状态
|
||
export class GVGTeamMem extends GVGTeam {
|
||
isMoving: boolean;
|
||
|
||
constructor(team: GVGTeamType) {
|
||
super();
|
||
this.roleId = team.roleId;
|
||
this.roleName = team.roleName;
|
||
this.serverId = team.serverId;
|
||
this.teamCode = team.teamCode;
|
||
this.index = team.index;
|
||
this.leagueCode = team.leagueCode;
|
||
this.guildCode = team.guildCode;
|
||
this.areaId = team.areaId;
|
||
this.fromAreaId = team.fromAreaId;
|
||
this.cityId = team.cityId;
|
||
this.pointId = team.pointId;
|
||
this.head = team.head;
|
||
this.spine = team.spine;
|
||
this.frame = team.frame;
|
||
this.durability = team.durability;
|
||
this.restartTime = team.restartTime;
|
||
this.attackTime = team.attackTime;
|
||
this.defenseTime = team.defenseTime;
|
||
this.startMoveTime = team.startMoveTime;
|
||
this.stopMoveTime = team.stopMoveTime;
|
||
this.playerScore = team.playerScore;
|
||
}
|
||
|
||
public setCity(cityId: number, areaId = 0, pointId = 0) {
|
||
this.cityId = cityId;
|
||
this.areaId = areaId;
|
||
this.pointId = pointId;
|
||
}
|
||
|
||
public moveToArea(areaId: number, fromAreaId: number, startMoveTime: number, stopMoveTime: number) {
|
||
this.areaId = areaId;
|
||
this.fromAreaId = fromAreaId;
|
||
this.startMoveTime = startMoveTime;
|
||
this.stopMoveTime = stopMoveTime;
|
||
}
|
||
}
|