C# Class AngryTanks.Client.Shot

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

Méthodes publiques

Méthode Description
AllocateSlot ( Shot>.Dictionary shots ) : Byte
Draw ( GameTime gameTime, SpriteBatch spriteBatch ) : void
End ( bool explode, bool sendEndShot ) : void
Shot ( AngryTanks.Client.World world, Player player, Byte slot, bool local, Vector2 initialPosition, System.Single rotation, Vector2 initialVelocity ) : System
Update ( GameTime gameTime ) : void

Méthodes protégées

Méthode Description
GetTexture ( AngryTanks.Client.World world, Player player ) : Microsoft.Xna.Framework.Graphics.Texture2D

Method Details

AllocateSlot() public static méthode

public static AllocateSlot ( Shot>.Dictionary shots ) : Byte
shots Shot>.Dictionary
Résultat Byte

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

End() public méthode

public End ( bool explode, bool sendEndShot ) : void
explode bool
sendEndShot bool
Résultat void

GetTexture() protected static méthode

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

Shot() public méthode

public Shot ( AngryTanks.Client.World world, Player player, Byte slot, bool local, Vector2 initialPosition, System.Single rotation, Vector2 initialVelocity ) : System
world AngryTanks.Client.World
player Player
slot Byte
local bool
initialPosition Vector2
rotation System.Single
initialVelocity Vector2
Résultat System

Update() public méthode

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