2020-04-11 22:04:02 +00:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
// The current state of the game: whether we are
|
|
|
|
// playing, gazing at the intermission screen,
|
|
|
|
// the game final animation, or a demo.
|
|
|
|
enum gamestate_t : int
|
|
|
|
{
|
|
|
|
GS_LEVEL,
|
2020-07-21 22:42:50 +00:00
|
|
|
GS_INTRO,
|
2020-04-11 22:04:02 +00:00
|
|
|
GS_INTERMISSION,
|
|
|
|
GS_FINALE,
|
2020-08-10 22:46:27 +00:00
|
|
|
GS_MENUSCREEN,
|
2020-04-11 22:04:02 +00:00
|
|
|
GS_FULLCONSOLE, // [RH] Fullscreen console
|
|
|
|
GS_HIDECONSOLE, // [RH] The menu just did something that should hide fs console
|
|
|
|
GS_STARTUP, // [RH] Console is fullscreen, and game is just starting
|
2020-08-10 22:46:27 +00:00
|
|
|
GS_TITLELEVEL, // [RH] A combination of GS_LEVEL and GS_MENUSCREEN
|
2020-04-11 22:04:02 +00:00
|
|
|
|
|
|
|
GS_FORCEWIPE = -1,
|
|
|
|
GS_FORCEWIPEFADE = -2,
|
|
|
|
GS_FORCEWIPEBURN = -3,
|
|
|
|
GS_FORCEWIPEMELT = -4
|
|
|
|
};
|
|
|
|
|
2020-09-03 21:10:28 +00:00
|
|
|
enum gameaction_t : int
|
|
|
|
{
|
|
|
|
ga_nothing,
|
2020-09-05 13:43:34 +00:00
|
|
|
ga_level, // Switch to play mode without any initialization
|
|
|
|
ga_intro,
|
|
|
|
ga_intermission,
|
|
|
|
|
2020-09-03 21:10:28 +00:00
|
|
|
ga_startup, // go back to intro after uninitializing the game state
|
|
|
|
ga_mainmenu, // go back to main menu after uninitializing the game state
|
2020-09-05 13:43:34 +00:00
|
|
|
ga_mainmenunostopsound, // Same but doesn't stop playing sounds.
|
2020-09-04 18:46:44 +00:00
|
|
|
ga_creditsmenu, // go to the credits menu after uninitializing the game state
|
2020-09-03 21:10:28 +00:00
|
|
|
ga_newgame, // start a new game
|
|
|
|
ga_recordgame, // start a new demo recording (later)
|
|
|
|
ga_loadgame, // load a savegame and resume play.
|
|
|
|
ga_loadgameplaydemo, // load a savegame and play a demo.
|
|
|
|
ga_autoloadgame, // load last autosave and resume play.
|
|
|
|
ga_savegame, // save the game
|
|
|
|
ga_autosave, // autosave the game (for triggering a save from within the game.)
|
|
|
|
ga_completed, // Level was exited.
|
2020-10-07 16:32:57 +00:00
|
|
|
ga_nextlevel, // Actually start the next level.
|
2020-10-10 11:30:23 +00:00
|
|
|
ga_loadgamehidecon,
|
|
|
|
ga_newgamenostopsound, // start a new game
|
2020-10-25 08:20:26 +00:00
|
|
|
|
|
|
|
ga_fullconsole,
|
2020-09-03 21:10:28 +00:00
|
|
|
};
|
2020-04-11 22:04:02 +00:00
|
|
|
extern gamestate_t gamestate;
|
2020-09-03 21:10:28 +00:00
|
|
|
extern gameaction_t gameaction;
|