-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMap.h
More file actions
44 lines (43 loc) · 692 Bytes
/
Map.h
File metadata and controls
44 lines (43 loc) · 692 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
#pragma once
#define LEFT 1
#define UP 2
#define RIGHT 3
#define DOWN 4
struct Postion
{
short x;
short y;
};
struct RGB
{
short r;
short g;
short b;
};
struct DotInf
{
short Road[12];
Postion Destination;
RGB color;
int Number;
};
class Map
{
private:
DotInf MapInf[20][20];
Postion Focus;
void SetFocus(int i,int j);
void LoseFocus();
public:
Postion Lord;
Map();
~Map();
void Initial();
int DealChangeRoad(int i,int j);
void ChangeDes(int i,int j);
int GetDotNum(int i,int j);
void ResetDotNum(int i, int j);
void GetDotRGB(int i,int j,int& r, int& g, int& b);
void DealClick(int i,int j);
void* GetRoad(int i, int j);
};