C# Class Stroids.Asteroid

Mostra file Open project: Timvangool/AsteroidsAPO2

Public Methods

Method 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 method

public Asteroid ( ) : System
return System

Asteroid() public method

public Asteroid ( Vector2 pos, int size, double speed, Vector2 direction ) : System
pos Vector2
size int
speed double
direction Vector2
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

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

GetAsteroidHitbox() public method

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

GetSize() public method

public GetSize ( ) : int
return int

GetXPos() public method

public GetXPos ( ) : int
return int

GetYPos() public method

public GetYPos ( ) : 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