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

17 lines
468 B
TypeScript
Raw Normal View History

2015-01-06 00:00:00 +00:00
module SpaceTac.Game {
// Action to end the ship's turn
export class EndTurnAction extends BaseAction {
constructor() {
super("endturn", false);
}
canBeUsed(battle: Battle, ship: Ship): boolean {
return battle.playing_ship === ship;
}
protected customApply(battle: Battle, ship: Ship, target: Target): boolean {
battle.advanceToNextShip();
return true;
}
}
}