C# Class ThreadedPlatformer.Enemy

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

Public Methods

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

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

Enemy() public method

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

LoadContent() public method

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

Update() public method

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