#ifndef FALLOUT_GAME_GAME_H_
#define FALLOUT_GAME_GAME_H_

#include <stdbool.h>

#include "game/game_vars.h"
#include "game/message.h"

typedef enum GameState {
    GAME_STATE_0,
    GAME_STATE_1,
    GAME_STATE_2,
    GAME_STATE_3,
    GAME_STATE_4,
    GAME_STATE_5,
} GameState;

extern int* game_global_vars;
extern int num_game_global_vars;
extern const char* msg_path;
extern int game_user_wants_to_quit;

extern MessageList misc_message_file;
extern int master_db_handle;
extern int critter_db_handle;

int game_init(const char* windowTitle, bool isMapper, int a3, int a4, int argc, char** argv);
void game_reset();
void game_exit();
int game_handle_input(int eventCode, bool isInCombatMode);
void game_ui_disable(int a1);
void game_ui_enable();
bool game_ui_is_disabled();
int game_get_global_var(int var);
int game_set_global_var(int var, int value);
int game_load_info();
int game_load_info_vars(const char* path, const char* section, int* variablesListLengthPtr, int** variablesListPtr);
int game_state();
int game_state_request(int a1);
void game_state_update();
int game_quit_with_confirm();

#endif /* FALLOUT_GAME_GAME_H_ */
