C# Class Astroids.Classes.Player

Mostra file Open project: Timvangool/AsteroidsAPO2

Public Properties

Property Type Description
weapList List

Public Methods

Method Description
CheckBoundries ( int scrnWidth, int scrnHeight ) : void
Draw ( SpriteBatch spriteBatch ) : void
GetDirection ( ) : Vector2
GetLife ( ) : int
GetPlayerHitbox ( ) : Rectangle
Load ( Microsoft.Xna.Framework.Content.ContentManager content ) : void
Move ( ) : void
Player ( ) : System
Player ( Microsoft.Xna.Framework.Content.ContentManager content ) : System
RocketExplosion ( GameTime gameTime ) : void
SetLives ( int lives ) : void
Shoot ( int weapon ) : Weapon
SlowDown ( ) : void
Update ( GameTime gameTime ) : void

Method Details

CheckBoundries() public method

public CheckBoundries ( int scrnWidth, int scrnHeight ) : void
scrnWidth int
scrnHeight int
return void

Draw() public method

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

GetDirection() public method

public GetDirection ( ) : Vector2
return Vector2

GetLife() public method

public GetLife ( ) : int
return int

GetPlayerHitbox() public method

public GetPlayerHitbox ( ) : Rectangle
return Microsoft.Xna.Framework.Rectangle

Load() public method

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

Move() public method

public Move ( ) : void
return void

Player() public method

public Player ( ) : System
return System

Player() public method

public Player ( Microsoft.Xna.Framework.Content.ContentManager content ) : System
content Microsoft.Xna.Framework.Content.ContentManager
return System

RocketExplosion() public method

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

SetLives() public method

public SetLives ( int lives ) : void
lives int
return void

Shoot() public method

public Shoot ( int weapon ) : Weapon
weapon int
return Weapon

SlowDown() public method

public SlowDown ( ) : void
return void

Update() public method

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

Property Details

weapList public_oe property

public List weapList
return List