C# Class AngryTanks.Client.LocalPlayer

Inheritance: Player
Show file Open project: dvicory/AngryTanks Class Usage Examples

Public Methods

Method Description
Die ( Player killer ) : void
LocalPlayer ( AngryTanks.Client.World world, PlayerInformation playerInfo ) : System
Spawn ( Vector2 position, float rotation ) : void
Update ( GameTime gameTime ) : void

Protected Methods

Method Description
Dispose ( bool disposing ) : void
HandleReceivedMessage ( object sender, AngryTanks.Client.ServerLinkMessageEvent message ) : void
Shoot ( Byte shotSlot, Vector2 initialPosition, System.Single rotation, Vector2 initialVelocity, bool local ) : void

Private Methods

Method Description
CheckShots ( GameTime gameTime ) : void
KeyPressed ( Keys key ) : void
UpdatePosition ( GameTime gameTime ) : void

Method Details

Die() public method

public Die ( Player killer ) : void
killer Player
return void

Dispose() protected method

protected Dispose ( bool disposing ) : void
disposing bool
return void

HandleReceivedMessage() protected method

protected HandleReceivedMessage ( object sender, AngryTanks.Client.ServerLinkMessageEvent message ) : void
sender object
message AngryTanks.Client.ServerLinkMessageEvent
return void

LocalPlayer() public method

public LocalPlayer ( AngryTanks.Client.World world, PlayerInformation playerInfo ) : System
world AngryTanks.Client.World
playerInfo PlayerInformation
return System

Shoot() protected method

protected Shoot ( Byte shotSlot, Vector2 initialPosition, System.Single rotation, Vector2 initialVelocity, bool local ) : void
shotSlot Byte
initialPosition Vector2
rotation System.Single
initialVelocity Vector2
local bool
return void

Spawn() public method

public Spawn ( Vector2 position, float rotation ) : void
position Vector2
rotation float
return void

Update() public method

public Update ( GameTime gameTime ) : void
gameTime Microsoft.Xna.Framework.GameTime
return void