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

17 lines
399 B
TypeScript
Raw Normal View History

2015-01-06 00:00:00 +00:00
module SpaceTac.Game {
2015-01-07 00:00:00 +00:00
"use strict";
2015-01-06 00:00:00 +00:00
// Action to end the ship's turn
export class EndTurnAction extends BaseAction {
constructor() {
super("endturn", false);
}
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
}