C# Class MyGame.Monster

Inheritance: CDrawableComponent
Afficher le fichier Open project: mahmoudbahaa/XNA-Game-project Class Usage Examples

Méthodes publiques

Свойство Type Description
health int
monsterUnit MonsterUnit

Méthodes publiques

Méthode Description
Bite ( ) : void
Die ( ) : void
Draw ( GameTime gameTime ) : void

This method renders the current state.

Idle ( ) : void
Monster ( MyGame game, CModel model, Unit unit ) : System
Run ( ) : void
TakeDamage ( ) : void
Update ( GameTime gameTime ) : void

Allows the game component to update itself.

getScore ( ) : int

Method Details

Bite() public méthode

public Bite ( ) : void
Résultat void

Die() public méthode

public Die ( ) : void
Résultat void

Draw() public méthode

This method renders the current state.
public Draw ( GameTime gameTime ) : void
gameTime Microsoft.Xna.Framework.GameTime The elapsed game time.
Résultat void

Idle() public méthode

public Idle ( ) : void
Résultat void

Monster() public méthode

public Monster ( MyGame game, CModel model, Unit unit ) : System
game MyGame
model CModel
unit Unit
Résultat System

Run() public méthode

public Run ( ) : void
Résultat void

TakeDamage() public méthode

public TakeDamage ( ) : void
Résultat void

Update() public méthode

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

getScore() public méthode

public getScore ( ) : int
Résultat int

Property Details

health public_oe property

public int health
Résultat int

monsterUnit public_oe property

public MonsterUnit,MyGame monsterUnit
Résultat MonsterUnit