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

16 lines
445 B
TypeScript
Raw Normal View History

2015-02-09 00:00:00 +00:00
/// <reference path="BaseLogEvent.ts"/>
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
export class ShipChangeEvent extends BaseLogEvent {
// 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
}