re3-wiiu/src/core/Game.h

72 lines
1.6 KiB
C
Raw Normal View History

2019-05-15 16:52:37 +02:00
#pragma once
2020-04-19 18:34:08 +02:00
enum eLevelName {
LEVEL_IGNORE = -1, // beware, this is only used in CPhysical's m_nZoneLevel
2019-05-15 16:52:37 +02:00
LEVEL_NONE = 0,
2020-05-05 23:27:43 +02:00
LEVEL_BEACH,
LEVEL_MAINLAND
};
enum eAreaName {
AREA_MAIN_MAP,
AREA_HOTEL,
AREA_MANSION,
AREA_BANK,
AREA_MALL,
AREA_STRIP_CLUB,
AREA_LAWYERS,
AREA_COFFEE_SHOP,
AREA_CONCERT_HALL,
AREA_STUDIO,
AREA_RIFLE_RANGE,
AREA_BIKER_BAR,
AREA_POLICE_STATION,
AREA_EVERYWHERE,
AREA_DIRT,
AREA_BLOOD,
AREA_OVALRING,
AREA_MALIBU_CLUB,
AREA_PRINT_WORKS
2019-05-15 16:52:37 +02:00
};
class CGame
{
public:
2020-04-17 07:54:14 +02:00
static eLevelName currLevel;
static int32 currArea;
2020-04-17 07:54:14 +02:00
static bool bDemoMode;
static bool nastyGame;
static bool frenchGame;
static bool germanGame;
2020-03-29 08:35:13 +02:00
#ifdef MORE_LANGUAGES
static bool russianGame;
2020-04-26 22:49:24 +02:00
static bool japaneseGame;
2020-03-29 08:35:13 +02:00
#endif
2020-04-17 07:54:14 +02:00
static bool noProstitutes;
static bool playingIntro;
static char aDatFile[32];
2019-05-31 11:44:43 +02:00
2019-06-17 00:16:38 +02:00
static bool InitialiseOnceBeforeRW(void);
static bool InitialiseRenderWare(void);
2019-05-31 19:02:26 +02:00
static void ShutdownRenderWare(void);
static bool InitialiseOnceAfterRW(void);
2019-05-31 19:02:26 +02:00
static void FinalShutdown(void);
static bool Initialise(const char *datFile);
static bool ShutDown(void);
static void ReInitGameObjectVariables(void);
static void ReloadIPLs(void);
static void ShutDownForRestart(void);
static void InitialiseWhenRestarting(void);
2019-06-28 19:23:28 +02:00
static void Process(void);
2020-05-07 15:57:49 +02:00
static bool IsInInterior(void) { return currArea != AREA_MAIN_MAP; }
static bool CanSeeOutSideFromCurrArea(void);
2019-06-28 19:23:28 +02:00
// NB: these do something on PS2
static void TidyUpMemory(bool, bool);
static void DrasticTidyUpMemory(bool);
static void ProcessTidyUpMemory(void);
2019-05-15 16:52:37 +02:00
};
2020-05-05 23:27:43 +02:00
inline bool IsAreaVisible(int area) { return area == CGame::currArea || area == AREA_EVERYWHERE; }