1
0
Fork 0
spacetac/src/core/events/ShipChangeEvent.ts

16 lines
452 B
TypeScript
Raw Normal View History

/// <reference path="BaseBattleEvent.ts"/>
2015-02-09 00:00:00 +00:00
2017-02-09 00:00:35 +00:00
module TS.SpaceTac {
2014-12-31 00:00:00 +00:00
// Battle event, when a ship turn ended, and advanced to a new one
2017-03-09 17:11:00 +00:00
export class ShipChangeEvent extends BaseLogShipEvent {
// Ship that starts playing
new_ship: Ship;
2014-12-31 00:00:00 +00:00
constructor(ship: Ship, new_ship: Ship) {
super("ship_change", ship, new_ship ? Target.newFromShip(new_ship) : null);
this.new_ship = new_ship;
2014-12-31 00:00:00 +00:00
}
}
2015-01-07 00:00:00 +00:00
}