C# Class MyGame.Monster

Inheritance: CDrawableComponent
Show file Open project: mahmoudbahaa/XNA-Game-project Class Usage Examples

Public Properties

Property Type Description
health int
monsterUnit MonsterUnit

Public Methods

Method 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 method

public Bite ( ) : void
return void

Die() public method

public Die ( ) : void
return void

Draw() public method

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

Idle() public method

public Idle ( ) : void
return void

Monster() public method

public Monster ( MyGame game, CModel model, Unit unit ) : System
game MyGame
model CModel
unit Unit
return System

Run() public method

public Run ( ) : void
return void

TakeDamage() public method

public TakeDamage ( ) : void
return void

Update() public method

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

getScore() public method

public getScore ( ) : int
return int

Property Details

health public property

public int health
return int

monsterUnit public property

public MonsterUnit,MyGame monsterUnit
return MonsterUnit