diff options
| author | XaviDCR92 <xavi.dcr@gmail.com> | 2017-12-29 15:07:17 +0100 |
|---|---|---|
| committer | XaviDCR92 <xavi.dcr@gmail.com> | 2017-12-29 15:07:17 +0100 |
| commit | 0d1df70f2d1a08fdb6389391ee59afc5fbc6277a (patch) | |
| tree | 8695e5e33cdba5da4bdbbcbe7ab2ac33eb9bc53f /Source/Game.h | |
| parent | fef6629d96f375b98ebb81382c0e8b4ee9b0f48b (diff) | |
| download | airport-0d1df70f2d1a08fdb6389391ee59afc5fbc6277a.tar.gz | |
* Aircraft.c: invalid XYZ position was calculated if runway direction != EAST.
* Aircraft.c: aircraft direction is now set according to runway direction when aircraft is created.
* Game.c: TILE_PARKING_2 was not included on AcceptedTiles[].
* Game.c: GameAssignRunwaytoAircraft() was not looking up runway exit/entry points correctly.
Diffstat (limited to 'Source/Game.h')
| -rw-r--r-- | Source/Game.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/Source/Game.h b/Source/Game.h index d02f6bc..1196193 100644 --- a/Source/Game.h +++ b/Source/Game.h @@ -21,6 +21,19 @@ #define TILE_SIZE_BIT_SHIFT 6 /* ************************************* + * Structs and enums + * *************************************/ + +typedef enum t_rwydir +{ + RWY_DIR_EAST = 0, + RWY_DIR_WEST, + RWY_DIR_NORTH, + RWY_DIR_SOUTH, + RWY_INVALID_DIR, +}RWY_DIR; + +/* ************************************* * Global variables * *************************************/ @@ -48,4 +61,6 @@ void GameCalculateRemainingAircraft(void); void GameAircraftCollision(uint8_t AircraftIdx); void GameStopFlight(uint8_t AicraftIdx); void GameResumeFlightFromAutoStop(uint8_t AircraftIdx); +RWY_DIR GameGetRunwayDirection(uint16_t rwyHeader); + #endif //GAME_HEADER__ |
