-
Notifications
You must be signed in to change notification settings - Fork 2
/
Room.hpp
57 lines (50 loc) · 1.28 KB
/
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
53
54
55
56
57
#ifndef ROOM_H
#define ROOM_H
#include<iostream>
#include<string>
#include<ostream>
#include<ncurses.h>
#include<stdlib.h>
#include<time.h>
#include "Position.hpp"
using namespace std;
class Room {
private :
Position *position;
int height;
int width;
Position *doors[3];
char ** sauve;
Room ** nr;
public:
Room(Position *,int,int);
Room(Room**,int,int);
Room(Room**,int);
Position *getPosition(){return this->position;}
int getHeight(){return this->height;}
int getWidth(){return this->width;}
void setPosition(Position *);
void setHeight(int);
void setWidth(int);
void modifierSauve(int,int,char);
char ** getSauve(){return this->sauve;}
void drawRoom(int);
void putDoors(int);
void initialiserSauve();
void setFirstDoor(Position *);
void setSecondeDoor(Position *);
void setThirdDoor(Position *);
Position * getFirstDoor(){return this->doors[0];}
Position * getSecondDoor(){return this->doors[1];}
Position * getThirdDoor(){return this->doors[2];}
void connexionEntrePorte(Position* ,Position* );
virtual ~Room(){
delete sauve;
delete nr;
delete position;
delete doors[0];
delete doors[1];
delete doors[2];
}
};
#endif