2019-05-15 10:52:37 -04:00
|
|
|
#pragma once
|
|
|
|
|
2020-04-19 12:34:08 -04:00
|
|
|
enum eLevelName {
|
2020-04-19 00:14:13 -04:00
|
|
|
LEVEL_IGNORE = -1, // beware, this is only used in CPhysical's m_nZoneLevel
|
2020-07-13 10:43:09 -04:00
|
|
|
LEVEL_GENERIC = 0,
|
2019-05-15 10:52:37 -04:00
|
|
|
LEVEL_INDUSTRIAL,
|
|
|
|
LEVEL_COMMERCIAL,
|
2020-12-08 00:50:29 -05:00
|
|
|
LEVEL_SUBURBAN,
|
|
|
|
NUM_LEVELS
|
2019-05-15 10:52:37 -04:00
|
|
|
};
|
|
|
|
|
|
|
|
class CGame
|
|
|
|
{
|
|
|
|
public:
|
2020-04-17 01:54:14 -04:00
|
|
|
static eLevelName currLevel;
|
|
|
|
static bool bDemoMode;
|
|
|
|
static bool nastyGame;
|
|
|
|
static bool frenchGame;
|
|
|
|
static bool germanGame;
|
2020-03-29 02:35:13 -04:00
|
|
|
#ifdef MORE_LANGUAGES
|
|
|
|
static bool russianGame;
|
2020-04-26 16:49:24 -04:00
|
|
|
static bool japaneseGame;
|
2020-03-29 02:35:13 -04:00
|
|
|
#endif
|
2020-04-17 01:54:14 -04:00
|
|
|
static bool noProstitutes;
|
|
|
|
static bool playingIntro;
|
|
|
|
static char aDatFile[32];
|
2019-05-31 05:44:43 -04:00
|
|
|
|
2019-06-16 18:16:38 -04:00
|
|
|
static bool InitialiseOnceBeforeRW(void);
|
|
|
|
static bool InitialiseRenderWare(void);
|
2019-05-31 13:02:26 -04:00
|
|
|
static void ShutdownRenderWare(void);
|
2020-03-28 16:55:23 -04:00
|
|
|
static bool InitialiseOnceAfterRW(void);
|
2019-05-31 13:02:26 -04:00
|
|
|
static void FinalShutdown(void);
|
2020-12-20 13:13:58 -05:00
|
|
|
#if GTA_VERSION <= GTA3_PS2_160
|
|
|
|
static bool Initialise(void);
|
|
|
|
#else
|
2020-03-28 16:55:23 -04:00
|
|
|
static bool Initialise(const char *datFile);
|
2020-12-20 13:13:58 -05:00
|
|
|
#endif
|
2020-03-28 16:55:23 -04:00
|
|
|
static bool ShutDown(void);
|
|
|
|
static void ReInitGameObjectVariables(void);
|
|
|
|
static void ReloadIPLs(void);
|
2019-06-01 23:00:38 -04:00
|
|
|
static void ShutDownForRestart(void);
|
2020-03-28 16:55:23 -04:00
|
|
|
static void InitialiseWhenRestarting(void);
|
2019-06-28 13:23:28 -04:00
|
|
|
static void Process(void);
|
2020-03-28 16:55:23 -04:00
|
|
|
|
2019-06-28 13:23:28 -04:00
|
|
|
// NB: these do something on PS2
|
2020-03-28 16:55:23 -04:00
|
|
|
static void TidyUpMemory(bool, bool);
|
|
|
|
static void DrasticTidyUpMemory(bool);
|
2020-04-08 19:52:38 -04:00
|
|
|
static void ProcessTidyUpMemory(void);
|
2019-05-15 10:52:37 -04:00
|
|
|
};
|