using namespace std;
-typedef struct monster_ Monster;
-
class aClient; // forward declaration
+class Monster; // forward declaration
class item; // forward declaration
class weapon; // forward declaration
void setRawPassword(const char *p); //Set the player's password without encrypting it
void setClient(aClient *); // Set the pointer back to this player's IRC Client
- void setMonster(Monster); // Set the pointer to the monster this player is fighting
+ void setMonster(Monster *); // Set the pointer to the monster this player is fighting
void setMyMaster(Monster *); // Set the pointer to the master this player is fighting
void setBattle(aClient *); // Set the pointer to the player this person is fighting
item *a; // Player's armor
};
-struct monster_ {
- monster_();
- monster_(monster_ *);
- monster_(monster_ &);
- ~monster_();
+class Monster {
+public:
+ Monster();
+ Monster(Monster *);
+ Monster(const Monster &);
+ Monster(Monster &);
+ ~Monster();
string name; // The monster's name
string weapon; // A name for their weapon. Doesn't have to be in weapons[]
int strength; // Their strength