1
0
Fork 0
spacetac/src/game/actions/EndTurnAction.ts

15 lines
402 B
TypeScript

module TS.SpaceTac.Game {
// Action to end the ship's turn
export class EndTurnAction extends BaseAction {
constructor() {
super("endturn", "End ship's turn", false);
}
protected customApply(battle: Battle, ship: Ship, target: Target): boolean {
ship.endTurn();
battle.advanceToNextShip();
return true;
}
}
}