/***************************************************************************
monster.h - description
-------------------
begin : Sun Feb 6 2000
copyright : (C) 2000 by Daniel Roberge
email : droberge@uvic.ca
***************************************************************************/
#ifndef _MONSTER_H
#define _MONSTER_H
#include "character.h"
#include "pchar.h"
/**This class represents a monster, but not a hostile NPC.
*@author Daniel Roberge
*/
class Monster : public Character
{
private:
int XPValue;
/**This function increases hit points by one hit die*/
int HitPoints();
public:
Monster(int,int,int,PWeapon,PArmour,char *);
/**This function checks to see if the hit points of the monster have fallen
below zero*/
bool AmAlive() { return HP.IsPositive(); };
/**Gives the XP value of the monster to the player character referred to by killer*/
void giveXP(PlayerChar *killer);
/**Tells a function that a Monster has no character class*/
bool haveClass() {return false;};
};
#endif
| Generated by: droberge@magebook.localdomain on Mon Jul 3 13:20:08 200. |