C# Class MageDefenderDeluxe.GameObjects.SpellHandler

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

Public Methods

Method Description
AddSpell ( Vector3 pos, Spells s, Vector3 target ) : void
Draw ( GameTime gameTime ) : void
GetManaCost ( Spells spellType ) : int
GetSpellDescription ( Spells spellType ) : string
GetSpellPrice ( Spells spellType ) : int
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.

LearnSpell ( SpellHandler learn ) : void
LoadSpells ( ) : void
NextLevel ( ) : void
ResetAfterGameOver ( ) : void
SpellHandler ( Microsoft.Xna.Framework.Game game ) : System
Update ( GameTime gameTime, float thumbSticksRightX ) : void

Allows the game component to update itself.

Protected Methods

Method Description
LoadContent ( ) : void

Method Details

AddSpell() public method

public AddSpell ( Vector3 pos, Spells s, Vector3 target ) : void
pos Vector3
s Spells
target Vector3
return void

Draw() public method

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

GetManaCost() public method

public GetManaCost ( Spells spellType ) : int
spellType Spells
return int

GetSpellDescription() public method

public GetSpellDescription ( Spells spellType ) : string
spellType Spells
return string

GetSpellPrice() public method

public GetSpellPrice ( Spells spellType ) : int
spellType Spells
return int

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

LearnSpell() public method

public LearnSpell ( SpellHandler learn ) : void
learn SpellHandler
return void

LoadContent() protected method

protected LoadContent ( ) : void
return void

LoadSpells() public method

public LoadSpells ( ) : void
return void

NextLevel() public method

public NextLevel ( ) : void
return void

ResetAfterGameOver() public method

public ResetAfterGameOver ( ) : void
return void

SpellHandler() public method

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

Update() public method

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