-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMap.h
More file actions
58 lines (48 loc) · 895 Bytes
/
Map.h
File metadata and controls
58 lines (48 loc) · 895 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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
#include "Enemy.h"
#pragma once
// Contains Map and Location classes
class map
{
private:
int boardx;
int boardy;
int fkx;
int fky;
public:
map();
void goN();
void goS();
void goE();
void goW();
int getx()
{
return boardx;
}
int gety()
{
return boardy;
}
};
class location
{
private:
//can the player go north, south, east and/or west?
bool goN;
bool goS;
bool goE;
bool goW;
bool bigmonB; //unique monster in room?
int randmonchance;
bool shop;
public:
enemy *bigmon;
enemy *randmon;
location ();
void runroom(player &mainchar, map &maplocation);
void roommenu(player &mainchar, map &maplocation);
void combatcheck(player &mainchar);
void initialize(bool goN_, bool goS_, bool goE_, bool goW_, bool bigmonB_, enemy *bigmon_, enemy *randmon_, int randmonchance_, bool shop_);
};
void displayonenter();
void displaystats();
void combat(enemy *hostile);