C# Class Stroids.Asteroid

Afficher le fichier Open project: Timvangool/AsteroidsAPO2

Méthodes publiques

Méthode Description
Asteroid ( ) : System
Asteroid ( Vector2 pos, int size, double speed, Vector2 direction ) : System
Asteroid ( int posX, int posY, int size, float speed, Vector2 direction ) : System
CheckBoundries ( int scrnWidth, int scrnHeight ) : void
Draw ( SpriteBatch batch, Microsoft.Xna.Framework.Content.ContentManager content ) : void
GetAsteroidHitbox ( ) : Rectangle
GetSize ( ) : int
GetXPos ( ) : int
GetYPos ( ) : int
Load ( Microsoft.Xna.Framework.Content.ContentManager content ) : void
Update ( GameTime gametime ) : void

Method Details

Asteroid() public méthode

public Asteroid ( ) : System
Résultat System

Asteroid() public méthode

public Asteroid ( Vector2 pos, int size, double speed, Vector2 direction ) : System
pos Vector2
size int
speed double
direction Vector2
Résultat System

Asteroid() public méthode

public Asteroid ( int posX, int posY, int size, float speed, Vector2 direction ) : System
posX int
posY int
size int
speed float
direction Vector2
Résultat System

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 batch, Microsoft.Xna.Framework.Content.ContentManager content ) : void
batch Microsoft.Xna.Framework.Graphics.SpriteBatch
content Microsoft.Xna.Framework.Content.ContentManager
Résultat void

GetAsteroidHitbox() public méthode

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

GetSize() public méthode

public GetSize ( ) : int
Résultat int

GetXPos() public méthode

public GetXPos ( ) : int
Résultat int

GetYPos() public méthode

public GetYPos ( ) : int
Résultat int

Load() public méthode

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

Update() public méthode

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