C# Class MyGame.MonsterModel

This class represent monster model that can run differet animations so inherent from AnimatedModel
Inheritance: AnimatedModel
Show file Open project: mahmoudbahaa/XNA-Game-project Class Usage Examples

Public Properties

Property Type Description
activeAnimation MonsterAnimations
isRunning bool

Public Methods

Method Description
Bite ( ) : void
Die ( ) : void
Idle ( ) : void
MonsterModel ( MyGame game, SkinnedModel skinnedModel ) : System
Run ( ) : void
TakeDamage ( ) : void
reinitialize ( SkinnedModel skinnedModel ) : void

Private Methods

Method Description
DoAction ( bool LoopEnabled, MonsterAnimations anim ) : void

Method Details

Bite() public method

public Bite ( ) : void
return void

Die() public method

public Die ( ) : void
return void

Idle() public method

public Idle ( ) : void
return void

MonsterModel() public method

public MonsterModel ( MyGame game, SkinnedModel skinnedModel ) : System
game MyGame
skinnedModel XNAnimation.SkinnedModel
return System

Run() public method

public Run ( ) : void
return void

TakeDamage() public method

public TakeDamage ( ) : void
return void

reinitialize() public method

public reinitialize ( SkinnedModel skinnedModel ) : void
skinnedModel XNAnimation.SkinnedModel
return void

Property Details

activeAnimation public property

public MonsterAnimations activeAnimation
return MonsterAnimations

isRunning public property

public bool isRunning
return bool