/
Room.hpp
52 lines (47 loc) · 971 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
47
48
49
50
51
52
#ifndef ROOM_HPP
#define ROOM_HPP
#include<cstdlib>
#include"Character.hpp"
#include"Hero.hpp"
#include<iostream>
using std::cout;
using std::cin;
using std::endl;
class Room
{
private:
Room *East, *West, *North, *South;
int row, col;
char **level;
Hero* player;
bool lever = false, first = true;
public:
Room(Hero*);
void setRow(int);
void setCol(int);
void setEast(Room*);
void setWest(Room*);
void setNorth(Room*);
void setSouth(Room*);
void setHero(Hero*);
void createLevel();
void MovePlayer(char);
Hero* getHero();
Room* getEast();
Room* getWest();
Room* getNorth();
Room* getSouth();
char** getLevel();
int getRow();
int getCol();
void setLevel(char**);
virtual void populateLevel() = 0;
virtual void playerHealthDrain();
virtual void playerInteract();
void printLevel();
void printGame();
virtual bool newRoom();
virtual string newRommDir();
~Room();
};
#endif // ! ROOM_HPP