2 |
================= |
================= |
3 |
MAP.h |
MAP.h |
4 |
================= |
================= |
5 |
version 0.1.7 |
version 0.1.8 |
6 |
================= |
================= |
7 |
|
|
8 |
This is the main data structure for the game map. |
This is the main data structure for the game map. |
14 |
|
|
15 |
CHANGLELOG: |
CHANGLELOG: |
16 |
-------------------- |
-------------------- |
17 |
|
0.1.8 August 16, 2003 |
18 |
|
- added DegradeRoad() |
19 |
0.1.7 August 3, 2003 |
0.1.7 August 3, 2003 |
20 |
- implemented Create() function for gutting and recreating the actual map data structure internally without having to scrap the Map object and make a new one. |
- implemented Create() function for gutting and recreating the actual map data structure internally without having to scrap the Map object and make a new one. |
21 |
- fixed TrampleRoad() bug. numbers would go negative if the trampler was degrading by more than 1 level. |
- fixed TrampleRoad() bug. numbers would go negative if the trampler was degrading by more than 1 level. |
117 |
|
|
118 |
/** Reduces the road quality of a given tile by the specified value. Tiles start at 9 and work down to 0. */ |
/** Reduces the road quality of a given tile by the specified value. Tiles start at 9 and work down to 0. */ |
119 |
void TrampleRoad(int x, int y, int a=1); |
void TrampleRoad(int x, int y, int a=1); |
120 |
|
/** increases the road quality attribute by "a" (i.e. makes it worse - more "roady") */ |
121 |
|
void DegradeRoad(int x, int y, int a=1); |
122 |
/** Returns the road quality at the given tile*/ |
/** Returns the road quality at the given tile*/ |
123 |
int GetRoadQ(int x, int y); |
int GetRoadQ(int x, int y); |
124 |
|
|