Monster Class Reference

#include <monster.h>

List of all members.

Public Member Functions

 Monster (unsigned int x, unsigned int y, unsigned int lvl, ezmon::EZmonster mon)
 ~Monster ()
unsigned int getX () const
unsigned int getY () const
unsigned int getLevel () const
int getHP () const
unsigned int getXPValue () const
ezCh::ezChar getChar () const
ezcolor::color getColor () const
void update (Player &player, Dungeon &dungeon)

Constructor & Destructor Documentation

Monster::Monster ( unsigned int  x,
unsigned int  y,
unsigned int  lvl,
ezmon::EZmonster  mon 
)

Creates a new monster to fight the player.

Parameters:
x The x-coordinate of the monster.
y The y-coordinate of the monster.
lvl The level of where to create the monster.
mon Which monster to create: see ezmon::EZmonster.
Monster::~Monster (  ) 

Member Function Documentation

ezCh::ezChar Monster::getChar (  )  const [inline]
ezcolor::color Monster::getColor (  )  const [inline]
Returns:
The ezcolor::color color of the character to be rendered.
int Monster::getHP (  )  const [inline]
Returns:
the monster's hit points.
unsigned int Monster::getLevel (  )  const [inline]
Returns:
the monster's dungeon level.
unsigned int Monster::getX (  )  const [inline]
Returns:
the monster's x-coordinate.
unsigned int Monster::getXPValue (  )  const [inline]
Returns:
the value, in player experience points, of the monster.
unsigned int Monster::getY (  )  const [inline]
Returns:
the monster's y-coordinate.
void Monster::update ( Player player,
Dungeon dungeon 
)

Monster's updating function.

Monster updates itself. It moves. It may attack the player if in range.

Parameters:
player The player information is passed so that the monster can interact, if applicable.
dungeon The dungeon information is passed so that the monster can move around in it.

The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Enumerations Enumerator

Generated by  doxygen 1.6.2