Monster Class Reference

#include <monster.hpp>

Inheritance diagram for Monster:

Being MovingObject Object Thing List of all members.

Detailed Description

The class for a fightable monster with its own AI.

Definition at line 31 of file monster.hpp.

Public Member Functions

 Monster ()
 Constructor.
void update ()
 Performs one step of controller logic.
virtual void die ()
 Kills the being.

Protected Member Functions

virtual WeaponStats getWeaponStats ()
 Gets the stats of the currently equipped weapon that are relevant for damage calculation.
void calculateDerivedAttributes ()
 Calculates all derived attributes.

Private Attributes

unsigned int mCountDown
 Count down till next random movement (temporary).


Constructor & Destructor Documentation

Monster::Monster  ) 
 

Constructor.

Definition at line 27 of file monster.cpp.


Member Function Documentation

void Monster::calculateDerivedAttributes  )  [protected]
 

Calculates all derived attributes.

Reimplemented from Being.

Definition at line 83 of file monster.cpp.

void Monster::die  )  [virtual]
 

Kills the being.

Reimplemented from Being.

Definition at line 62 of file monster.cpp.

WeaponStats Monster::getWeaponStats  )  [protected, virtual]
 

Gets the stats of the currently equipped weapon that are relevant for damage calculation.

Reimplemented from Being.

Definition at line 68 of file monster.cpp.

void Monster::update  )  [virtual]
 

Performs one step of controller logic.

Implements Thing.

Definition at line 34 of file monster.cpp.


Member Data Documentation

unsigned int Monster::mCountDown [private]
 

Count down till next random movement (temporary).

Definition at line 63 of file monster.hpp.


The documentation for this class was generated from the following files:
Generated on Fri Mar 30 15:39:18 2007 for TMW Server by  doxygen 1.3.9.1