1
0
Fork 0
spacetac/src/app/game/events/MoveEvent.ts

18 lines
430 B
TypeScript
Raw Normal View History

2015-02-09 00:00:00 +00:00
/// <reference path="BaseLogEvent.ts"/>
module SpaceTac.Game {
2015-01-07 00:00:00 +00:00
"use strict";
2014-12-31 00:00:00 +00:00
// Event logged when a ship moves
export class MoveEvent extends BaseLogEvent {
2015-01-26 00:00:00 +00:00
// New facing angle, in radians
facing_angle: number;
2014-12-31 00:00:00 +00:00
constructor(ship: Ship, x: number, y: number) {
super("move", ship, Target.newFromLocation(x, y));
2015-01-26 00:00:00 +00:00
this.facing_angle = ship.arena_angle;
2014-12-31 00:00:00 +00:00
}
}
2015-01-07 00:00:00 +00:00
}