C# 클래스 MageDefenderDeluxe.GameObjects.SpellHandler

This is a game component that implements IUpdateable.
상속: Microsoft.Xna.Framework.DrawableGameComponent, ISpellHandler
파일 보기 프로젝트 열기: petriw/MageDefenderDeluxe 1 사용 예제들

공개 메소드들

메소드 설명
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.

보호된 메소드들

메소드 설명
LoadContent ( ) : void

메소드 상세

AddSpell() 공개 메소드

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

Draw() 공개 메소드

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

GetManaCost() 공개 메소드

public GetManaCost ( Spells spellType ) : int
spellType Spells
리턴 int

GetSpellDescription() 공개 메소드

public GetSpellDescription ( Spells spellType ) : string
spellType Spells
리턴 string

GetSpellPrice() 공개 메소드

public GetSpellPrice ( Spells spellType ) : int
spellType Spells
리턴 int

Initialize() 공개 메소드

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
리턴 void

LearnSpell() 공개 메소드

public LearnSpell ( SpellHandler learn ) : void
learn SpellHandler
리턴 void

LoadContent() 보호된 메소드

protected LoadContent ( ) : void
리턴 void

LoadSpells() 공개 메소드

public LoadSpells ( ) : void
리턴 void

NextLevel() 공개 메소드

public NextLevel ( ) : void
리턴 void

ResetAfterGameOver() 공개 메소드

public ResetAfterGameOver ( ) : void
리턴 void

SpellHandler() 공개 메소드

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

Update() 공개 메소드

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
리턴 void