C# Class ZombieShooter.Player

Inheritance: Obj
显示文件 Open project: Spectrewiz/Zombie-Shooter Class Usage Examples

Public Properties

Property Type Description
ammo int
maxAmmo int
player Player
reloading bool

Public Methods

Method Description
Draw ( SpriteBatch spriteBatch ) : void
LoadContent ( Microsoft.Xna.Framework.Content.ContentManager content ) : void
Menu ( ) : void
Player ( Vector2 position ) : System
Reload ( ) : void
Shoot ( ) : void
Update ( ) : void
checkTimer ( ) : void

Method Details

Draw() public method

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

LoadContent() public method

public LoadContent ( Microsoft.Xna.Framework.Content.ContentManager content ) : void
content Microsoft.Xna.Framework.Content.ContentManager
return void

Menu() public method

public Menu ( ) : void
return void

Player() public method

public Player ( Vector2 position ) : System
position Vector2
return System

Reload() public method

public Reload ( ) : void
return void

Shoot() public method

public Shoot ( ) : void
return void

Update() public method

public Update ( ) : void
return void

checkTimer() public method

public checkTimer ( ) : void
return void

Property Details

ammo public_oe property

public int ammo
return int

maxAmmo public_oe property

public int maxAmmo
return int

player public_oe static_oe property

public static Player,ZombieShooter player
return Player

reloading public_oe property

public bool reloading
return bool