Class Player
Player is the player which has two modes car or robot.
Attributes
Name
Person's Name
Score
Score updated when player damages other players and player capturing flags
Robot
Update players properties when transformed into a robot
Car
Update players properties when transformed into a car
Captures
Update flag captures when player brings flag back to a designated destination
HasFlag
True when has flag and trying to bring back to destination
HP
How much damage you can take on.
Energon
How much energon points to fire, speedboost, and transform
TurboOn
Flag whether TurboOn, Updates velocity and drains energon
JumpJets
Flag if on, drains energon and changes velocity.
ShieldHP
Flag if shield on
Mode
Mode of player is either Car or Robot
TopSpeed
Maximum velocity of player
Acceleration
const, Used to modify speed
TurningSpeed
How quickly one turns left or right
ReserveTopSpeedFactor
1/4 of the TopSpeed (Const)
BrakingFactor
2 time the TopSpeed (Const)
Velocity
Updates location of player
Orientation
Facing direction of player
Mass
Mass determines how much damage is dealt
WeaponList
List of weapons
Methods
Draw()
Transform()
Animates and changes mode to opposite current mode. Update
mode properties.
UpdateScore()
UpdateCaptures()
HasFlag()
Returns true if has flag
UpdateHP()
UpdateEnergon()
ShieldOn()
Returns true if shield on
Fire()
Fire current weapon
AddWeapon()
ChangeWeapon()
ActivateTurbo()
Turn TurboOn, update velocity, and drain energon
ActivateJumpJets()
Turn JumpJetsOn, update velocity, and drain energon