-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaRoom.h
37 lines (33 loc) · 921 Bytes
/
aRoom.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
#pragma once
#include <string>
//#include "anItem.h"
#include "anItemList.h"
#include "anExitList.h"
using namespace std;
//const int aRoom_NOT_FOUND = -1;
class aRoom {
public:
aRoom();
void setShortDescription(string rest);
void getShortDescription();
void setLongDescription(string aline);
void getLongDescription();
void addExit( string direction, int toRoom);
int findExit(string direction);
void addItem(string name, string direction, bool canTake);
int findItem(string name);
anItem removeItem(int index);
void displayItems();
void displayExits();
void enter();
void look();
void examine(string name, anItemList playerInventory);
void take(string name, anItemList playerInventory);
void drop(string name, anItemList playerInventory);
void print();
private:
string shortDescription;
string longDescription;
anItemList itemList;
anExitList exitList;
};