C# Class Swordening.Hero

Inheritance: Creature
Afficher le fichier Open project: ArghyV/Peliohjelmointi-s2011 Class Usage Examples

Méthodes publiques

Свойство Type Description
gold int
tnl int

Méthodes publiques

Méthode 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

Méthodes protégées

Méthode 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 méthode

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

Hero() public méthode

public Hero ( SwordeningGame game, InGame gameState, Vector3 position ) : System
game SwordeningGame
gameState InGame
position Vector3
Résultat System

ProcessKeyboardInput() protected abstract méthode

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

ProcessMouseInput() protected abstract méthode

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

Update() public méthode

public Update ( GameTime gameTime ) : void
gameTime Microsoft.Xna.Framework.GameTime
Résultat void

checkDeath() public abstract méthode

public abstract checkDeath ( ) : void
Résultat void

killGain() public abstract méthode

public abstract killGain ( int exp, int money ) : void
exp int
money int
Résultat void

levelup() public abstract méthode

public abstract levelup ( ) : void
Résultat void

takeDmg() public abstract méthode

public abstract takeDmg ( int amount ) : void
amount int
Résultat void

Property Details

gold public_oe property

public int gold
Résultat int

tnl public_oe property

public int tnl
Résultat int