Monster Class Reference
#include <monster.h>
List of all members.
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. |
Member Function Documentation
| 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.
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:
- C:/Users/D/Documents/Visual Studio 2008/Projects/EZRL_project/EZRLv0.1.9/EZRL/EZRL/monster.h
- C:/Users/D/Documents/Visual Studio 2008/Projects/EZRL_project/EZRLv0.1.9/EZRL/EZRL/monster.cpp