Properties
charged
charged: number = 0
Private charging
charging: boolean = false
coolDown
coolDown: number = 0
energy
energy: number = 1
expendable
expendable: boolean = false
gunLeft
gun
Left: Gun = new Gun(new Vector(10, -12))
gunRight
gun
Right: Gun = new Gun(new Vector(10, 12))
Protected hitRadius
hitRadius: number = 0
Private rotation
rotation: number = 0
Private thrusting
thrusting: boolean = false
Private timeShield
timeShield: number = 0
Static Private acceleration
acceleration: number = 20
Static Private energyToCharge
energyToCharge: number = 0.002
Static Private energyToShield
energyToShield: number = 0.4
Static Private energyToThrust
energyToThrust: number = 0.003
Static Private timeCooling
timeCooling: number = 0.5
Static Private timeEnergyRestore
timeEnergyRestore: number = 20
Static Private timeToChargeFully
timeToChargeFully: number = 1
Static Private timeToShowShield
timeToShowShield: number = 2
Describes the space ship the player controls. Can head towards a given point, thrust in this direction and dispatch an event to the main program in order to create the Laser beams and a Hotspot. Handles its energy and dispatches it to