C# Class Astroids.Classes.Player

Afficher le fichier Open project: Timvangool/AsteroidsAPO2

Méthodes publiques

Свойство Type Description
weapList List

Méthodes publiques

Méthode 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 méthode

public CheckBoundries ( int scrnWidth, int scrnHeight ) : void
scrnWidth int
scrnHeight int
Résultat void

Draw() public méthode

public Draw ( SpriteBatch spriteBatch ) : void
spriteBatch Microsoft.Xna.Framework.Graphics.SpriteBatch
Résultat void

GetDirection() public méthode

public GetDirection ( ) : Vector2
Résultat Vector2

GetLife() public méthode

public GetLife ( ) : int
Résultat int

GetPlayerHitbox() public méthode

public GetPlayerHitbox ( ) : Rectangle
Résultat Microsoft.Xna.Framework.Rectangle

Load() public méthode

public Load ( Microsoft.Xna.Framework.Content.ContentManager content ) : void
content Microsoft.Xna.Framework.Content.ContentManager
Résultat void

Move() public méthode

public Move ( ) : void
Résultat void

Player() public méthode

public Player ( ) : System
Résultat System

Player() public méthode

public Player ( Microsoft.Xna.Framework.Content.ContentManager content ) : System
content Microsoft.Xna.Framework.Content.ContentManager
Résultat System

RocketExplosion() public méthode

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

SetLives() public méthode

public SetLives ( int lives ) : void
lives int
Résultat void

Shoot() public méthode

public Shoot ( int weapon ) : Weapon
weapon int
Résultat Weapon

SlowDown() public méthode

public SlowDown ( ) : void
Résultat void

Update() public méthode

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

Property Details

weapList public_oe property

public List weapList
Résultat List