C# Class ThreadedPlatformer.Enemy

A monster who is impeding the progress of our fearless adventurer.
Afficher le fichier Open project: sq/Fracture Class Usage Examples

Méthodes publiques

Méthode Description
Draw ( GameTime gameTime, BitmapBatch batch ) : void

Draws the animated enemy.

Enemy ( Level level, Vector2 position, string spriteSet ) : System

Constructs a new Enemy.

LoadContent ( string spriteSet ) : void

Loads a particular enemy sprite sheet and sounds.

Update ( GameTime gameTime ) : void

Paces back and forth along a platform, waiting at either end.

Method Details

Draw() public méthode

Draws the animated enemy.
public Draw ( GameTime gameTime, BitmapBatch batch ) : void
gameTime Microsoft.Xna.Framework.GameTime
batch BitmapBatch
Résultat void

Enemy() public méthode

Constructs a new Enemy.
public Enemy ( Level level, Vector2 position, string spriteSet ) : System
level Level
position Vector2
spriteSet string
Résultat System

LoadContent() public méthode

Loads a particular enemy sprite sheet and sounds.
public LoadContent ( string spriteSet ) : void
spriteSet string
Résultat void

Update() public méthode

Paces back and forth along a platform, waiting at either end.
public Update ( GameTime gameTime ) : void
gameTime Microsoft.Xna.Framework.GameTime
Résultat void