-
Notifications
You must be signed in to change notification settings - Fork 0
/
Region.h
51 lines (44 loc) · 1.32 KB
/
Region.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
//
//
//
//
//
#ifndef REGION_H
#define REGION_H
#include "Sector.h"
const int MAX_SECTORS = 500;
const string regionPrefix[5] = { "Alpha",
"Beta",
"Gamma",
"Delta",
"Epsilon",
};
const string regionSuffix[5] = { "One",
"Two",
"Three",
"Four",
"Five",
};
class Region
{
public:
Region();
virtual ~Region();
// Sector Wrapper: Displays the full region info
void displayRegionFull();
// Sector Wrapper: Displays the short region info
void displayRegionShort();
// Function runs through all of the sectors and links them together to form a region
void linkSectors();
// Sector Wrapper: Displays the full sector info
void displaySectorFull(int s);
// Sector Wrapper: Displays the short sector info
void displaySectorShort(int s);
// Sector Wrapper: Returns true if the passed connection exists in the sector (valid movement etc)
bool checkSectors(int c, int s);
protected:
private:
Sector *sectors[MAX_SECTORS];
int connectedSectors;
};
#endif // REGION_H