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

15 lines
402 B
TypeScript
Raw Normal View History

module TS.SpaceTac.Game {
2015-01-06 00:00:00 +00:00
// Action to end the ship's turn
export class EndTurnAction extends BaseAction {
constructor() {
2017-01-08 22:42:53 +00:00
super("endturn", "End ship's turn", false);
2015-01-06 00:00:00 +00:00
}
protected customApply(battle: Battle, ship: Ship, target: Target): boolean {
ship.endTurn();
2015-01-06 00:00:00 +00:00
battle.advanceToNextShip();
return true;
}
}
2015-01-07 00:00:00 +00:00
}