C# Class AngryTanks.Client.LocalPlayer

Inheritance: Player
Afficher le fichier Open project: dvicory/AngryTanks Class Usage Examples

Méthodes publiques

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

Méthodes protégées

Méthode 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

Méthode Description
CheckShots ( GameTime gameTime ) : void
KeyPressed ( Keys key ) : void
UpdatePosition ( GameTime gameTime ) : void

Method Details

Die() public méthode

public Die ( Player killer ) : void
killer Player
Résultat void

Dispose() protected méthode

protected Dispose ( bool disposing ) : void
disposing bool
Résultat void

HandleReceivedMessage() protected méthode

protected HandleReceivedMessage ( object sender, AngryTanks.Client.ServerLinkMessageEvent message ) : void
sender object
message AngryTanks.Client.ServerLinkMessageEvent
Résultat void

LocalPlayer() public méthode

public LocalPlayer ( AngryTanks.Client.World world, PlayerInformation playerInfo ) : System
world AngryTanks.Client.World
playerInfo PlayerInformation
Résultat System

Shoot() protected méthode

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
Résultat void

Spawn() public méthode

public Spawn ( Vector2 position, float rotation ) : void
position Vector2
rotation float
Résultat void

Update() public méthode

public Update ( GameTime gameTime ) : void
gameTime Microsoft.Xna.Framework.GameTime
Résultat void