C# Class Astroids.Classes.Asteroid

Show file Open project: Timvangool/AsteroidsAPO2

Public Methods

Method Description
Asteroid ( ) : System
Asteroid ( int posX, int posY, int size, float speed, Vector2 direction ) : System
Asteroid ( int posX, int posY, int size, float speed, Vector2 direction, Microsoft.Xna.Framework.Content.ContentManager content ) : System
CheckBoundries ( int scrnWidth, int scrnHeight ) : void
Draw ( SpriteBatch batch, Microsoft.Xna.Framework.Content.ContentManager content ) : void
ExplodeAnimation ( GameTime gametime ) : void
GetAsteroidHitbox ( ) : Rectangle
GetSize ( ) : int
Load ( Microsoft.Xna.Framework.Content.ContentManager content ) : void
Update ( GameTime gametime ) : void
getXPos ( ) : int
getYPos ( ) : int

Method Details

Asteroid() public method

public Asteroid ( ) : System
return System

Asteroid() public method

public Asteroid ( int posX, int posY, int size, float speed, Vector2 direction ) : System
posX int
posY int
size int
speed float
direction Vector2
return System

Asteroid() public method

public Asteroid ( int posX, int posY, int size, float speed, Vector2 direction, Microsoft.Xna.Framework.Content.ContentManager content ) : System
posX int
posY int
size int
speed float
direction Vector2
content Microsoft.Xna.Framework.Content.ContentManager
return System

CheckBoundries() public method

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

Draw() public method

public Draw ( SpriteBatch batch, Microsoft.Xna.Framework.Content.ContentManager content ) : void
batch Microsoft.Xna.Framework.Graphics.SpriteBatch
content Microsoft.Xna.Framework.Content.ContentManager
return void

ExplodeAnimation() public method

public ExplodeAnimation ( GameTime gametime ) : void
gametime Microsoft.Xna.Framework.GameTime
return void

GetAsteroidHitbox() public method

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

GetSize() public method

public GetSize ( ) : int
return int

Load() public method

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

Update() public method

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

getXPos() public method

public getXPos ( ) : int
return int

getYPos() public method

public getYPos ( ) : int
return int