C# Class Asteroids.Classes.Pickup

Mostrar archivo Open project: Timvangool/AsteroidsAPO2 Class Usage Examples

Public Methods

Method Description
Draw ( SpriteBatch batch ) : void
GetHitbox ( ) : Rectangle
GetIndex ( ) : int
GetIsIntersected ( ) : bool
GetPos ( ) : Vector2
GetTexture ( ) : Texture
GetVelocity ( ) : Vector2
Load ( Microsoft.Xna.Framework.Content.ContentManager content ) : void
Pickup ( ) : System
RandomPerk ( ) : int
SetIndex ( int index ) : void
SetIsIntersected ( bool isIntersected ) : void
SetPos ( Vector2 pos ) : void
SetTexture ( Microsoft.Xna.Framework.Graphics.Texture2D texture ) : void
SetVelocity ( Vector2 velocity ) : void
SpawnPickup ( ) : int
Update ( GameTime gameTime ) : void

Protected Methods

Method Description
SetHitBox ( Rectangle hitBox ) : void

Method Details

Draw() public method

public Draw ( SpriteBatch batch ) : void
batch Microsoft.Xna.Framework.Graphics.SpriteBatch
return void

GetHitbox() public method

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

GetIndex() public method

public GetIndex ( ) : int
return int

GetIsIntersected() public method

public GetIsIntersected ( ) : bool
return bool

GetPos() public method

public GetPos ( ) : Vector2
return Vector2

GetTexture() public method

public GetTexture ( ) : Texture
return Microsoft.Xna.Framework.Graphics.Texture

GetVelocity() public method

public GetVelocity ( ) : Vector2
return Vector2

Load() public method

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

Pickup() public method

public Pickup ( ) : System
return System

RandomPerk() public method

public RandomPerk ( ) : int
return int

SetHitBox() protected method

protected SetHitBox ( Rectangle hitBox ) : void
hitBox Microsoft.Xna.Framework.Rectangle
return void

SetIndex() public method

public SetIndex ( int index ) : void
index int
return void

SetIsIntersected() public method

public SetIsIntersected ( bool isIntersected ) : void
isIntersected bool
return void

SetPos() public method

public SetPos ( Vector2 pos ) : void
pos Vector2
return void

SetTexture() public method

public SetTexture ( Microsoft.Xna.Framework.Graphics.Texture2D texture ) : void
texture Microsoft.Xna.Framework.Graphics.Texture2D
return void

SetVelocity() public method

public SetVelocity ( Vector2 velocity ) : void
velocity Vector2
return void

SpawnPickup() public method

public SpawnPickup ( ) : int
return int

Update() public method

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