diff options
| author | XaviDCR92 <xavi.dcr@gmail.com> | 2017-06-06 06:52:46 +0200 |
|---|---|---|
| committer | XaviDCR92 <xavi.dcr@gmail.com> | 2017-06-06 06:52:46 +0200 |
| commit | 1244505327009142c80140e44c86138f4fd6ae07 (patch) | |
| tree | d11878572385583e5e2fd3d05ae3349dd46d45e6 /Source/GameStructures.h | |
| parent | c43347edb7d422b902360a44a7bd0b0a20f941f2 (diff) | |
| download | airport-1244505327009142c80140e44c86138f4fd6ae07.tar.gz | |
* Implemented aircraft collision. But it would not detect collision in some cases.
* Remove unneeded whitespace character on pointer variables (unary operators should not have any whitespaces).
* SelectedAircraft index now increases or decreases automatically on aircraft added/removed.
* Started writing Plt generation routines. Still a lot of work TODO.
Diffstat (limited to 'Source/GameStructures.h')
| -rw-r--r-- | Source/GameStructures.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/Source/GameStructures.h b/Source/GameStructures.h index 9da7436..faf5d38 100644 --- a/Source/GameStructures.h +++ b/Source/GameStructures.h @@ -7,6 +7,7 @@ #define GAME_MAX_AIRCRAFT 32
#define GAME_MAX_CHARACTERS 8
+#define GAME_MAX_PARKING 32
#define CHEAT_ARRAY_SIZE 16
#define AIRCRAFT_MAX_TARGETS 32
#define PLAYER_MAX_WAYPOINTS AIRCRAFT_MAX_TARGETS
@@ -47,6 +48,13 @@ typedef enum t_flstate STATE_LANDED
}FL_STATE;
+typedef enum t_LevelDifficulty
+{
+ LEVEL_DIFFICULTY_EASY = 0,
+ LEVEL_DIFFICULTY_MEDIUM,
+ LEVEL_DIFFICULTY_HARD
+}LEVEL_DIFFICULTY;
+
typedef struct t_isopos
{
short x;
@@ -231,4 +239,15 @@ typedef struct t_Cheat void (*Callback)(void);
}TYPE_CHEAT;
+// TYPE_PLT_CONFIG is used for PLT file generation.
+typedef struct t_PltConfig
+{
+ uint8_t MaxTime; // Minutes
+ uint8_t nRunway;
+ uint8_t ParkingArray[GAME_MAX_PARKING];
+ LEVEL_DIFFICULTY Level;
+ bool TwoPlayers;
+ uint8_t maxLostFlights;
+}TYPE_PLT_CONFIG;
+
#endif // __GAME_STRUCTURES__HEADER__
|
