Game Development Reference
In-Depth Information
* The remaining life of the monster. A value
* equal to or below zero is considered as dead.
*/
protected var m_life:Number;
/**
* The monster maximum life value when
* it comes to life. Higher level monsters
* would have a higher value.
*/
protected var m_maxLife:Number;
/**
* A variable to store the player (Avatar) that
* its currently engaged in a battle.
*/
protected var m_avatar:Avatar;
/**
* The time value in milli-seconds that the
* last update was called. This is enable us
* to determine the actual time elapsed between
* the current and previous update call
*/
protected var m_lastUpdate:Number;
/**
* A value that determines how quickly the
* monster will re-spawn after it dies.
*/
protected var m_respawnRate:Number;
/**
* A count down timer that starts after the monster dies.
* When the value reaches zero or below, it is respawned.
*/
protected var m_timeToRespawn:Number;
/**
* During the course of battle, the monster may
* rejuvinate its life. This value determines how
* quick. Higher level monsters may have higher value.
*/
protected var m_lifeRestoreRate:Number;
/**
* A count down timer, when this reaches zero or below
* the monster gets more life.
*/
protected var m_lifeRestore:Number;
/**
* Constrctor
*
* @param attackPower Amount of damage
* @param maxLife
* @param respawnRate
 
Search WWH ::




Custom Search