Monster Class Reference

The class for a fightable monster with its own AI. More...

#include <monster.hpp>

Inheritance diagram for Monster:

Being Actor Thing

List of all members.

Public Member Functions

 Monster (MonsterClass *)
 Constructor.
 ~Monster ()
 Destructor.
MonsterClassgetSpecy ()
 Returns monster specy.
void update ()
 Performs one step of controller logic.
void perform ()
 Performs an attack, if needed.
virtual int getAttackType () const
 Gets the type of the attack the being is currently performing.
void died ()
 Kills the being.
virtual int damage (Actor *source, const Damage &damage)
 Calls the damage function in Being and updates the aggro list.
void forgetTarget (Thing *being)
 Removes a being from the anger list.
virtual unsigned char getWalkMask () const
 Returns the way the actor is blocked by other things on the map.

Static Public Attributes

static const int KILLSTEAL_PROTECTION_TIME = 100
 Time in game ticks until ownership of a monster can change.

Protected Member Functions

virtual Map::BlockType getBlockType () const
 Returns the way the actor blocks pathfinding for other objects.

Friends

struct MonsterTargetEventDispatch


Detailed Description

The class for a fightable monster with its own AI.

Definition at line 206 of file monster.hpp.


Member Data Documentation

const int Monster::KILLSTEAL_PROTECTION_TIME = 100 [static]

Time in game ticks until ownership of a monster can change.

Definition at line 210 of file monster.hpp.

Referenced by damage().


The documentation for this class was generated from the following files:

Generated on Sun Apr 26 17:30:46 2009 for TMW Server Collection by  doxygen 1.5.5