equal
deleted
inserted
replaced
3 #ifndef NPF_H |
3 #ifndef NPF_H |
4 #define NPF_H |
4 #define NPF_H |
5 |
5 |
6 #include "openttd.h" |
6 #include "openttd.h" |
7 #include "aystar.h" |
7 #include "aystar.h" |
|
8 #include "station.h" |
8 #include "vehicle.h" |
9 #include "vehicle.h" |
9 #include "tile.h" |
10 #include "tile.h" |
10 #include "variables.h" |
11 #include "variables.h" |
11 |
12 |
12 //mowing grass |
13 //mowing grass |
29 NPF_INFINITE_PENALTY = 1000 * NPF_TILE_LENGTH |
30 NPF_INFINITE_PENALTY = 1000 * NPF_TILE_LENGTH |
30 }; |
31 }; |
31 |
32 |
32 typedef struct NPFFindStationOrTileData { /* Meant to be stored in AyStar.targetdata */ |
33 typedef struct NPFFindStationOrTileData { /* Meant to be stored in AyStar.targetdata */ |
33 TileIndex dest_coords; /* An indication of where the station is, for heuristic purposes, or the target tile */ |
34 TileIndex dest_coords; /* An indication of where the station is, for heuristic purposes, or the target tile */ |
34 int station_index; /* station index we're heading for, or -1 when we're heading for a tile */ |
35 StationID station_index; /* station index we're heading for, or INVALID_STATION when we're heading for a tile */ |
35 } NPFFindStationOrTileData; |
36 } NPFFindStationOrTileData; |
36 |
37 |
37 enum { /* Indices into AyStar.userdata[] */ |
38 enum { /* Indices into AyStar.userdata[] */ |
38 NPF_TYPE = 0, /* Contains a TransportTypes value */ |
39 NPF_TYPE = 0, /* Contains a TransportTypes value */ |
39 NPF_OWNER, /* Contains an Owner value */ |
40 NPF_OWNER, /* Contains an Owner value */ |