-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathWorld.h
More file actions
45 lines (35 loc) · 753 Bytes
/
Copy pathWorld.h
File metadata and controls
45 lines (35 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
40
41
42
43
44
45
/*World Class*/
//An all purpose class to hold two dimensional information.
class World
{
// Construction
public:
World();
World& operator=(World&);
World& Copy(World&);
// Attributes
public:
BOOL isWorld();
void CreateWorld(int, int);
SIZE GetWorldSize();
void RandomWorld();
void RandomWorld(int);
void PlotWorld(CDC& dc);
char ReadWorld(int, int) const;
char ReadWorld(CPoint) const;
CPoint AddressToCoordinates(int);
void WriteWorld(int, int, char) const;
void WriteWorld(CPoint, char) const;
void DeleteWorld();
void ZeroWorld();
private:
char* m_world;
void CycleWorld();
SIZE m_worldsize;
// Operations
public:
// Overrides
// Implementation
public:
virtual ~World();
};