-
Notifications
You must be signed in to change notification settings - Fork 0
/
grid.h
52 lines (35 loc) · 920 Bytes
/
grid.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
51
52
/*#include<iostream>
#include <vector>
#include <cstdlib>
#include "constants.h"
#include "structs.h"
#include "items.h"
#include "spells.h"
#include "living.h"
#include "block.h"
#include "creation.h"
*/
using namespace std;
class Grid { //map
private:
int k;
block * grid[length][height]; //example is 10x10
int battle(vector<Hero*>h);
int marketplace(vector<Hero*>h, Market *market);
int block_entry(coordinates p1);
int move_up(Hero *h);
int move_down(Hero *h) ;
int move_right(Hero *h);
int move_left(Hero *h) ;
int move_up(vector<Hero*> h);
int move_down(vector<Hero*> h);
int move_left(vector<Hero*> h);
int move_right(vector<Hero*> h);
public:
Grid() ;
void createGrid(vector<Hero*> h);
int play(vector<Hero*> h);
void print() ;
void return_to_start(vector<Hero *> h);
~Grid();
};