-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMap.h
More file actions
39 lines (34 loc) · 753 Bytes
/
Map.h
File metadata and controls
39 lines (34 loc) · 753 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
37
38
39
#ifndef MAP_H_INCLUDED
#define MAP_H_INCLUDED
#include <iostream>
#include <stdexcept>
#include <ctime>
#include <cstdlib>
#include "ConsoleController.h"
using namespace std;
class Map {
private:
int count;
int width;
int height;
int targetX;
int targetY;
char** map2dArray; //initialize in build()
bool makeMap2dArray();
void openWay(int startXPositin , int startYPosition);
public:
Map();
~Map();
void setMapDimens(const int WIDTH , const int HEIGHT);
int getMapWidth();
int getMapHeight();
int setMapHeight();
void build();
void draw();
char** getMap2dArray();
static const char WALL = char(219);
static const char BOMB = '0';
static const char FREE = ' ';
static const char TARGET = 'O';
};
#endif