C# Class AngryTanks.Client.Shot

Inheritance: DynamicSprite
显示文件 Open project: dvicory/AngryTanks Class Usage Examples

Public Methods

Method 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

Protected Methods

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

Method Details

AllocateSlot() public static method

public static AllocateSlot ( Shot>.Dictionary shots ) : Byte
shots Shot>.Dictionary
return Byte

Draw() public method

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

End() public method

public End ( bool explode, bool sendEndShot ) : void
explode bool
sendEndShot bool
return void

GetTexture() protected static method

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

Shot() public method

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
return System

Update() public method

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