C# Class Asteroids.Classes.Player

Exibir arquivo 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
GetGetHit ( ) : bool
GetIsRunning ( ) : bool
GetLife ( ) : int
GetPlayerHitbox ( ) : Rectangle
GetPos ( ) : Vector2
Load ( Microsoft.Xna.Framework.Content.ContentManager content ) : void
Move ( ) : void
Player ( ) : System
Player ( ControlHandler contHand ) : System
Respawn ( ) : void
RocketExplosion ( ) : void
SetGetHit ( bool getHit ) : void
SetLives ( int lives ) : void
SetMaxDelay ( float maxDelay ) : void
SetMaxSpeed ( float maxSpeed ) : void
SetPlayerPos ( SpriteBatch sb ) : void
SetTexture ( Microsoft.Xna.Framework.Graphics.Texture2D texture ) : void
Shoot ( int weapon ) : Weapon
SlowDown ( ) : void
Update ( GameTime gameTime ) : void
Update ( GameTime gameTime, ControlHandler contHand ) : 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

GetGetHit() public method

public GetGetHit ( ) : bool
return bool

GetIsRunning() public method

public GetIsRunning ( ) : bool
return bool

GetLife() public method

public GetLife ( ) : int
return int

GetPlayerHitbox() public method

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

GetPos() public method

public GetPos ( ) : Vector2
return Vector2

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 ( ControlHandler contHand ) : System
contHand ControlHandler
return System

Respawn() public method

public Respawn ( ) : void
return void

RocketExplosion() public method

public RocketExplosion ( ) : void
return void

SetGetHit() public method

public SetGetHit ( bool getHit ) : void
getHit bool
return void

SetLives() public method

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

SetMaxDelay() public method

public SetMaxDelay ( float maxDelay ) : void
maxDelay float
return void

SetMaxSpeed() public method

public SetMaxSpeed ( float maxSpeed ) : void
maxSpeed float
return void

SetPlayerPos() public method

public SetPlayerPos ( SpriteBatch sb ) : void
sb Microsoft.Xna.Framework.Graphics.SpriteBatch
return void

SetTexture() public method

public SetTexture ( Microsoft.Xna.Framework.Graphics.Texture2D texture ) : void
texture Microsoft.Xna.Framework.Graphics.Texture2D
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

Update() public method

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

Property Details

weapList public_oe property

public List weapList
return List