2022-05-19 01:51:26 -07:00
|
|
|
#ifndef GAME_H
|
|
|
|
#define GAME_H
|
|
|
|
|
|
|
|
#include "game_vars.h"
|
|
|
|
#include "message.h"
|
|
|
|
|
2022-09-23 05:43:44 -07:00
|
|
|
namespace fallout {
|
|
|
|
|
2022-09-01 08:41:37 -07:00
|
|
|
typedef enum GameState {
|
|
|
|
GAME_STATE_0,
|
|
|
|
GAME_STATE_1,
|
|
|
|
GAME_STATE_2,
|
|
|
|
GAME_STATE_3,
|
|
|
|
GAME_STATE_4,
|
|
|
|
GAME_STATE_5,
|
|
|
|
} GameState;
|
|
|
|
|
2022-05-19 01:51:26 -07:00
|
|
|
extern int* gGameGlobalVars;
|
|
|
|
extern int gGameGlobalVarsLength;
|
|
|
|
extern const char* asc_5186C8;
|
|
|
|
extern int _game_user_wants_to_quit;
|
|
|
|
|
|
|
|
extern MessageList gMiscMessageList;
|
|
|
|
extern int _master_db_handle;
|
|
|
|
extern int _critter_db_handle;
|
|
|
|
|
|
|
|
int gameInitWithOptions(const char* windowTitle, bool isMapper, int a3, int a4, int argc, char** argv);
|
|
|
|
void gameReset();
|
|
|
|
void gameExit();
|
|
|
|
int gameHandleKey(int eventCode, bool isInCombatMode);
|
|
|
|
void gameUiDisable(int a1);
|
|
|
|
void gameUiEnable();
|
|
|
|
bool gameUiIsDisabled();
|
|
|
|
int gameGetGlobalVar(int var);
|
|
|
|
int gameSetGlobalVar(int var, int value);
|
2022-07-29 06:04:05 -07:00
|
|
|
int globalVarsRead(const char* path, const char* section, int* variablesListLengthPtr, int** variablesListPtr);
|
2022-05-19 01:51:26 -07:00
|
|
|
int _game_state();
|
|
|
|
int _game_state_request(int a1);
|
|
|
|
void _game_state_update();
|
|
|
|
int showQuitConfirmationDialog();
|
|
|
|
|
2022-08-19 10:25:14 -07:00
|
|
|
int gameShowDeathDialog(const char* message);
|
|
|
|
|
2022-09-23 05:43:44 -07:00
|
|
|
} // namespace fallout
|
|
|
|
|
2022-05-19 01:51:26 -07:00
|
|
|
#endif /* GAME_H */
|