C# Class Asteroids.Classes.Asteroid

Mostrar archivo Open project: Timvangool/AsteroidsAPO2

Public Methods

Method Description
Asteroid ( ) : System
Asteroid ( Vector2 pos, int size, float speed, Vector2 direction, Microsoft.Xna.Framework.Content.ContentManager content ) : 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
ExplodeAnimation ( ) : void
GetAsteroidHitbox ( ) : Rectangle
GetIsRunning ( ) : bool
GetReadyToKill ( ) : bool
GetSize ( ) : int
GetXPos ( ) : int
GetYPos ( ) : int
Load ( Microsoft.Xna.Framework.Content.ContentManager content ) : void
SetGetHit ( bool GetHit ) : void
Update ( GameTime gametime ) : void

Method Details

Asteroid() public method

public Asteroid ( ) : System
return System

Asteroid() public method

public Asteroid ( Vector2 pos, int size, float speed, Vector2 direction, Microsoft.Xna.Framework.Content.ContentManager content ) : System
pos Vector2
size int
speed float
direction Vector2
content Microsoft.Xna.Framework.Content.ContentManager
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

ExplodeAnimation() public method

public ExplodeAnimation ( ) : void
return void

GetAsteroidHitbox() public method

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

GetIsRunning() public method

public GetIsRunning ( ) : bool
return bool

GetReadyToKill() public method

public GetReadyToKill ( ) : bool
return bool

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

SetGetHit() public method

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

Update() public method

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