C# Class MageDefenderDeluxe.GameObjects.EnemyHandler

This is a game component that implements IUpdateable.
Inheritance: Microsoft.Xna.Framework.DrawableGameComponent
Mostra file Open project: petriw/MageDefenderDeluxe Class Usage Examples

Public Methods

Method Description
AddEnemy ( Vector3 pos, Enemies e ) : void
ApplyAlignments ( ) : void
Draw ( GameTime gameTime ) : void
EnemyHandler ( Microsoft.Xna.Framework.Game game ) : System
GenerateEnemies ( ) : void
Initialize ( ) : void

Allows the game component to perform any initialization it needs to before starting to run. This is where it can query for any required services and load content.

IsCollidingWithPlayer ( Vector3 playerPos ) : void
IsCollidingWithSpell ( SpellHandler spellHandler ) : void
NextLevel ( ) : void
ResetAfterGameOver ( ) : void
Update ( GameTime gameTime ) : void

Allows the game component to update itself.

Protected Methods

Method Description
LoadContent ( ) : void

Private Methods

Method Description
MoveEnemies ( GameTime gameTime ) : void
SpawnEnemy ( GameTime gameTime ) : void

Method Details

AddEnemy() public method

public AddEnemy ( Vector3 pos, Enemies e ) : void
pos Vector3
e Enemies
return void

ApplyAlignments() public method

public ApplyAlignments ( ) : void
return void

Draw() public method

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

EnemyHandler() public method

public EnemyHandler ( Microsoft.Xna.Framework.Game game ) : System
game Microsoft.Xna.Framework.Game
return System

GenerateEnemies() public method

public GenerateEnemies ( ) : void
return void

Initialize() public method

Allows the game component to perform any initialization it needs to before starting to run. This is where it can query for any required services and load content.
public Initialize ( ) : void
return void

IsCollidingWithPlayer() public method

public IsCollidingWithPlayer ( Vector3 playerPos ) : void
playerPos Vector3
return void

IsCollidingWithSpell() public method

public IsCollidingWithSpell ( SpellHandler spellHandler ) : void
spellHandler SpellHandler
return void

LoadContent() protected method

protected LoadContent ( ) : void
return void

NextLevel() public method

public NextLevel ( ) : void
return void

ResetAfterGameOver() public method

public ResetAfterGameOver ( ) : void
return void

Update() public method

Allows the game component to update itself.
public Update ( GameTime gameTime ) : void
gameTime Microsoft.Xna.Framework.GameTime Provides a snapshot of timing values.
return void