2017-02-09 00:00:35 +00:00
|
|
|
module TS.SpaceTac {
|
2014-12-31 00:00:00 +00:00
|
|
|
// Base class for a BattleLog event
|
2017-02-07 18:54:53 +00:00
|
|
|
export class BaseLogEvent {
|
2014-12-31 00:00:00 +00:00
|
|
|
// Code of the event (its type)
|
|
|
|
code: string;
|
|
|
|
|
|
|
|
// The ship causing the event (the one whose turn it is to play)
|
|
|
|
ship: Ship;
|
|
|
|
|
|
|
|
// Target of the event
|
|
|
|
target: Target;
|
|
|
|
|
2017-02-14 00:30:50 +00:00
|
|
|
// Boolean at true if the event is used to set initial battle conditions
|
|
|
|
initial = false;
|
|
|
|
|
2014-12-31 00:00:00 +00:00
|
|
|
constructor(code: string, ship: Ship = null, target: Target = null) {
|
|
|
|
this.code = code;
|
|
|
|
this.ship = ship;
|
|
|
|
this.target = target;
|
|
|
|
}
|
|
|
|
}
|
2015-01-07 00:00:00 +00:00
|
|
|
}
|