C# Class Swordening.Hero

Inheritance: Creature
ファイルを表示 Open project: ArghyV/Peliohjelmointi-s2011 Class Usage Examples

Public Properties

Property Type Description
gold int
tnl int

Public Methods

Method Description
Draw ( GameTime gameTime ) : void

Allows the game component to draw itself.

Hero ( SwordeningGame game, InGame gameState, Vector3 position ) : System
Update ( GameTime gameTime ) : void
checkDeath ( ) : void
killGain ( int exp, int money ) : void
levelup ( ) : void
takeDmg ( int amount ) : void

Protected Methods

Method Description
ProcessKeyboardInput ( GameTime gameTime ) : void

Processes the given input from keyboard.

ProcessMouseInput ( GameTime gameTime ) : void

Processes the given input from mouse.

Method Details

Draw() public method

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

Hero() public method

public Hero ( SwordeningGame game, InGame gameState, Vector3 position ) : System
game SwordeningGame
gameState InGame
position Vector3
return System

ProcessKeyboardInput() protected abstract method

Processes the given input from keyboard.
protected abstract ProcessKeyboardInput ( GameTime gameTime ) : void
gameTime Microsoft.Xna.Framework.GameTime
return void

ProcessMouseInput() protected abstract method

Processes the given input from mouse.
protected abstract ProcessMouseInput ( GameTime gameTime ) : void
gameTime Microsoft.Xna.Framework.GameTime
return void

Update() public method

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

checkDeath() public abstract method

public abstract checkDeath ( ) : void
return void

killGain() public abstract method

public abstract killGain ( int exp, int money ) : void
exp int
money int
return void

levelup() public abstract method

public abstract levelup ( ) : void
return void

takeDmg() public abstract method

public abstract takeDmg ( int amount ) : void
amount int
return void

Property Details

gold public_oe property

public int gold
return int

tnl public_oe property

public int tnl
return int