-
Notifications
You must be signed in to change notification settings - Fork 0
/
room.hpp
46 lines (42 loc) · 892 Bytes
/
room.hpp
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
#ifndef ROOM_HPP
#define ROOM_HPP
#include "iostream"
#include "goblin.hpp"
#include "melee.hpp"
#include "ranged.hpp"
/* Needs to have enemies and items
*
*/
class Room{
public:
Room(std::string, std::string, Enemy*, Item*);
void setNorth(Room*);
void setSouth(Room*);
void setEast(Room*);
void setWest(Room*);
bool hasEnemies();
bool hasItems();
bool beenVisited();
void setVisited();
void removeItem();
std::string getDescription();
std::string getName();
Enemy* getEnemy();
Item* getItem();
void killEnemy(Enemy*);
Room* getNorth();
Room* getSouth();
Room* getEast();
Room* getWest();
private:
bool visited;
std::string name;
std::string description;
Room* north;
Room* south;
Room* east;
Room* west;
std::vector<Enemy*> enemyList;
std::vector<Item*> itemList;
};
#endif