-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMapCell.h
50 lines (40 loc) · 891 Bytes
/
MapCell.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 MAPCELL_H
#define MAPCELL_H
#include <iostream>
#include <vector>
#include <algorithm>
#include <unordered_map>
class MapCell
{
public:
MapCell();
MapCell(int gridLocation);
~MapCell();
static int* getMapArray() ;
static int* getWallArray();
int id;
bool getSmoke();
bool getFire();
bool getChecked();
int getID();
void setSmoke(bool smoke);
void setFire(bool fire);
void setChecked(bool checked);
void printBoard();
private:
static int m_defaultMap[178];
static int m_theMap[178];
static int m_theWalls[178];
static int m_poiList[16];
bool fire;
bool smoke;
bool hazmat;
bool checked;
bool hotSpot;
int wallArray[4];
int door;
int doorState;
int m_index;
std::unordered_map<int, int> cellToDoorMap;
};
#endif // MAPCELL_H