-
Notifications
You must be signed in to change notification settings - Fork 3
/
console.h
50 lines (39 loc) · 1.24 KB
/
console.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
#include<iostream>
#include<vector>
#include"Hurricane.h"
#include"Plane.h"
#include"Inself.h"
#include<math.h>
#include<time.h>
#include<Windows.h> //鼠标点击添加障碍物
using namespace std;
//地图大小
#define msizex 25
#define msizey 25
class Console
{
public:
/* Properties */
int time;
Inself ins1;
vector<Plane> planes_status; // About all the planes status.
vector<Plane> stop_planes_status; // About all the stop planes.
vector<vector<int>> map; //0:pass; 1:origin_stone ; 2:encounterPoint;3:hurricanPoint;4:encounter&hurricane
vector<vector<int>> temp_map;
vector<Hurricane> hurricane_status; // About all the hurricane status
/* Functions */
bool createNewPlane(Point start , Point end,int speed);
bool createNewPlane(Plane &pp);
bool createHurricane(Point a, int delta_t, int radius);
void deleteHurricane();
void StopToMove();
void refreshPlane();
bool judgeEncounter(Plane new_plane);
void addMapPoint(int x,int y, int val);
bool refreshAllPath();
bool Init_map();
void deleteMapPoint(int x, int y, int val);
void refresh_temp_map();
bool refresh_path_time(vector<Point *> &path,int t_start,int v);
void removeEncounterMap();
};