Debian Codegraph @

src/map.h

raw symbols SCIP
1 #ifndef MAP_HEADER_FILE__
2 #define MAP_HEADER_FILE__
3
4 /*
5 This file contains definitions for dealing with the depth of the
6 water and placing of thermal layers.
7 */
8
9 #ifndef TRUE
10 #define TRUE 1
11 #endif
12 #ifndef FALSE
13 #define FALSE 0
14 #endif
15
16 #define MAX_DEPTH 5000 // deepest part of the ocean
17 #define MIN_DEPTH 0 // most shallow point of the ocean
18 #define MAX_THERMALS 3
19 #define MAX_THERMAL_DEPTH 900
20 #define THERMAL_FILTER 0.15
21
22 // MAP_MIN and MAP_MAX are also defined in the coord class
23 #ifndef MAP_MIN
24 #define MAP_MIN 0
25 #endif
26 #ifndef MAP_MAX
27 #define MAP_MAX 300000
28 #endif
29
30 class MAP
31 {
32 public:
33 int thermals[MAX_THERMALS];
34
35 MAP();
36 ~MAP();
37 int Init();
38 int Create_Thermal_Layers(int how_many);
39
40 int Get_Ocean_Depth(int x, int y);
41 int Thermals_Between(int depth_1, int depth_2);
42 int Next_Up(int current_depth); // find thermal from our position
43 int Next_Down(int current_depth); // find thermal from our position
44
45 #ifdef DEBUGMAP
46 void Test_Map();
47 #endif
48
49 };
50
51
52
53 #endif
54