1
0
Fork 0
spacetac/src/game/events/BaseLogEvent.ts

24 lines
588 B
TypeScript

/// <reference path="../Serializable.ts"/>
module TS.SpaceTac.Game {
// Base class for a BattleLog event
export class BaseLogEvent extends Serializable {
// 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;
constructor(code: string, ship: Ship = null, target: Target = null) {
super();
this.code = code;
this.ship = ship;
this.target = target;
}
}
}