-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathRoom.h
More file actions
36 lines (29 loc) · 840 Bytes
/
Room.h
File metadata and controls
36 lines (29 loc) · 840 Bytes
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
#ifndef ROOM_H
#define ROOM_H
#include <vector>
#include <memory>
#include "Entity.h"
#include "Monster.h"
class Room {
string room_id;
int m_campfire;
unique_ptr<Monster> roomMonster;
vector<Room*> roomsAccess;//array of Room pointers
int roomsCounter;
static int roomsCapacity;
public:
//constructors
Room(const string &roomID, const string& monsterFirstChar,int campfire, int monsterCurrAmountOfLife, int monsterAttackValue);
//copy constructor
Room(const Room& other);
//destructor
~Room();
Room& operator=(const Room* other);
Room* operator[](int index);
const Room* operator[](int index) const;
int getRoomCounter() const;
bool setRoomAccess(Room* room, int index);
string getID() const;
friend class Game;
};
#endif