-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathRoom.h
50 lines (35 loc) · 887 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
49
50
#ifndef ROOM_H_
#define ROOM_H_
#include <map>
#include <string>
#include <vector>
#include "Item.h"
#include <QDebug>
class Room {
friend QDebug operator<< (QDebug d, Room *model) {
d << model->longDescription();
return d;
}
private:
QString description;
Item *item;
int X1, Y1; // Coordinates of the top left corener
int X2, Y2; // Coordinates of the bottom right corner
public:
Room(QString description, int x1, int y1, int x2, int y2);
Room(QString description, int x1, int y1, int x2, int y2, bool scenario);
~Room();
QString longDescription();
Item* getItem();
bool hasScenario;
int numberOfItems();
void setItem(Item *inItem);
int isItemInRoom(QString inString);
void removeItem();
int getX1();
int getY1();
int getX2();
int getY2();
void scenarioDone();
};
#endif