-
Notifications
You must be signed in to change notification settings - Fork 1
/
room.h
48 lines (39 loc) · 939 Bytes
/
room.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
#ifndef ROOM_H
#define ROOM_H
#include "character.h"
#include "enemy.h"
#include "item.h"
#include "curio.h"
class Room{
private:
Enemy* Monster;//
Curio* Puzzle;//
bool Visited;//
string Name;//
string Desc;//
list<Item> LooseItems;//
public:
Room();
Room(int MonsterType, string RoomName, string RoomDesc);
~Room() {if(Monster) delete Monster; if(Puzzle) delete Puzzle; }
bool visit() const;
void visit(bool input);
string roomname() const;
void roomname(string input);
string description() const;
void description(string desc);
void AddToFloor(Item ttt);
Item TakeFrom(string compare);
Curio* LookAtCurio() const;
void ChangeCurio(Curio* input);
Enemy* CurrentEnemy() const;
void ChangeEnemy(Enemy* input);
void DescribeItems();
int NumItems();
class Error {
public:
std::string desc;
Error(std::string description) : desc(description) {}
};
};
#endif