C# Class AngryTanks.Client.Player

Inheritance: DynamicSprite, IDisposable
Afficher le fichier Open project: dvicory/AngryTanks Class Usage Examples

Protected Properties

Свойство Type Description
playerInfo PlayerInformation
shots Shot>.Dictionary
state PlayerState

Méthodes publiques

Méthode Description
Die ( Player killer ) : void
Dispose ( ) : void
Draw ( GameTime gameTime, SpriteBatch spriteBatch ) : void
DrawCallsign ( GameTime gameTime, SpriteBatch spriteBatch ) : void

Draws the callsign behind the Player.

Player ( AngryTanks.Client.World world, PlayerInformation playerInfo ) : System
Spawn ( Vector2 position, System.Single rotation ) : void
Update ( GameTime gameTime ) : void

Méthodes protégées

Méthode Description
Dispose ( bool disposing ) : void
GetTankSize ( AngryTanks.Client.World world, PlayerInformation playerInfo ) : Vector2
GetTexture ( AngryTanks.Client.World world, PlayerInformation playerInfo ) : Microsoft.Xna.Framework.Graphics.Texture2D
HandleReceivedMessage ( object sender, AngryTanks.Client.ServerLinkMessageEvent message ) : void
Shoot ( Byte shotSlot, Vector2 initialPosition, System.Single rotation, Vector2 initialVelocity, bool local ) : void
Shoot ( Byte shotSlot, bool local ) : void

Method Details

Die() public méthode

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

Dispose() public méthode

public Dispose ( ) : void
Résultat void

Dispose() protected méthode

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

Draw() public méthode

public Draw ( GameTime gameTime, SpriteBatch spriteBatch ) : void
gameTime Microsoft.Xna.Framework.GameTime
spriteBatch Microsoft.Xna.Framework.Graphics.SpriteBatch
Résultat void

DrawCallsign() public méthode

Draws the callsign behind the Player.
public DrawCallsign ( GameTime gameTime, SpriteBatch spriteBatch ) : void
gameTime Microsoft.Xna.Framework.GameTime
spriteBatch Microsoft.Xna.Framework.Graphics.SpriteBatch
Résultat void

GetTankSize() protected static méthode

protected static GetTankSize ( AngryTanks.Client.World world, PlayerInformation playerInfo ) : Vector2
world AngryTanks.Client.World
playerInfo PlayerInformation
Résultat Vector2

GetTexture() protected static méthode

protected static GetTexture ( AngryTanks.Client.World world, PlayerInformation playerInfo ) : Microsoft.Xna.Framework.Graphics.Texture2D
world AngryTanks.Client.World
playerInfo PlayerInformation
Résultat Microsoft.Xna.Framework.Graphics.Texture2D

HandleReceivedMessage() protected méthode

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

Player() public méthode

public Player ( 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

Shoot() protected méthode

protected Shoot ( Byte shotSlot, bool local ) : void
shotSlot Byte
local bool
Résultat void

Spawn() public méthode

public Spawn ( Vector2 position, System.Single rotation ) : void
position Vector2
rotation System.Single
Résultat void

Update() public méthode

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

Property Details

playerInfo protected_oe property

protected PlayerInformation playerInfo
Résultat PlayerInformation

shots protected_oe property

protected Dictionary shots
Résultat Shot>.Dictionary

state protected_oe property

protected PlayerState state
Résultat PlayerState