C# Class Asteroids.Classes.Pickup

Afficher le fichier Open project: Timvangool/AsteroidsAPO2 Class Usage Examples

Méthodes publiques

Méthode 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

Méthodes protégées

Méthode Description
SetHitBox ( Rectangle hitBox ) : void

Method Details

Draw() public méthode

public Draw ( SpriteBatch batch ) : void
batch Microsoft.Xna.Framework.Graphics.SpriteBatch
Résultat void

GetHitbox() public méthode

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

GetIndex() public méthode

public GetIndex ( ) : int
Résultat int

GetIsIntersected() public méthode

public GetIsIntersected ( ) : bool
Résultat bool

GetPos() public méthode

public GetPos ( ) : Vector2
Résultat Vector2

GetTexture() public méthode

public GetTexture ( ) : Texture
Résultat Microsoft.Xna.Framework.Graphics.Texture

GetVelocity() public méthode

public GetVelocity ( ) : Vector2
Résultat Vector2

Load() public méthode

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

Pickup() public méthode

public Pickup ( ) : System
Résultat System

RandomPerk() public méthode

public RandomPerk ( ) : int
Résultat int

SetHitBox() protected méthode

protected SetHitBox ( Rectangle hitBox ) : void
hitBox Microsoft.Xna.Framework.Rectangle
Résultat void

SetIndex() public méthode

public SetIndex ( int index ) : void
index int
Résultat void

SetIsIntersected() public méthode

public SetIsIntersected ( bool isIntersected ) : void
isIntersected bool
Résultat void

SetPos() public méthode

public SetPos ( Vector2 pos ) : void
pos Vector2
Résultat void

SetTexture() public méthode

public SetTexture ( Microsoft.Xna.Framework.Graphics.Texture2D texture ) : void
texture Microsoft.Xna.Framework.Graphics.Texture2D
Résultat void

SetVelocity() public méthode

public SetVelocity ( Vector2 velocity ) : void
velocity Vector2
Résultat void

SpawnPickup() public méthode

public SpawnPickup ( ) : int
Résultat int

Update() public méthode

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