static ScreenState *const getLevelScreenState()
Get a pointer to the Level ScreenState.
Definition: Game.hpp:93
static ScreenState * m_menu
Main menu state instance.
Definition: Game.hpp:175
static void level()
Run the LevelScreen state.
gameState
Internal states of the game.
Definition: Game.hpp:30
Class for storing and managing all game data and states. Game is implemented as a Singleton and also ...
Definition: Game.hpp:16
static int m_soundEffectVolume
The current setting for sound effect volume.
Definition: Game.hpp:185
static void run()
Runs the game - call to get everything going.
Definition: Game.hpp:67
static void setMusicVolume(int v)
Set the global music volume.
Definition: Game.hpp:158
static glm::vec2 getScalingFactor()
Get the scaling factor according to the user's currently selected screen resolution relative to 800 x...
Definition: Game.hpp:139
static Window *const getWindow()
Retrieve the SDL window from the Game object.
Definition: Game.hpp:67
static void init()
Initialization routine for Game ScreenStates.
static Game & getInstance()
Retrieve the Singleton Game object.
static void setScreenState(ScreenState *const state)
Set the current ScreenState of the Game.
Definition: Game.hpp:79
static void menu()
Run the MenuScreen state.
Definition: Game.hpp:93
Game()
Inaccessible - Game is a Singleton.
Definition: Game.hpp:22
static void options()
Run the OptionsScreen state.
static ScreenState * m_level
Level state instance.
Definition: Game.hpp:179
static void characterSelect()
Run the CharacterSelect state.
static Uint32 m_gameState
Game object state (not screen state...but related).
Definition: Game.hpp:181
Abstract class for screen states, necessary for implementing the State pattern along with the Game cl...
Definition: ScreenState.hpp:14
static int getSoundEffectVolume()
Get the global setting for sound effect volume.
Definition: Game.hpp:164
void operator=(Game const &)=delete
Inaccessible - Game is a Singleton.
static void setSoundEffectVolume(int v)
Set the global sound effect volume.
Definition: Game.hpp:171
static Window * m_window
Window object for context and rendering.
Definition: Game.hpp:171
static ScreenState * m_levelSelect
LevelSelect state instance.
Definition: Game.hpp:177
static glm::vec2 m_scalingFactor
The scaling factor according to the current resolution relative to 800 x 600.
Definition: Game.hpp:183
Class for SDL window creation and management, implemented using the Facade pattern to provide a more ...
Definition: Window.hpp:24
static int m_musicVolume
The current setting for music volume.
Definition: Game.hpp:184
static ScreenState * m_characterSelect
CharacterSelect state instance.
Definition: Game.hpp:178
static bool m_running
Check if Game is running.
Definition: Game.hpp:182
static ScreenState * m_options
Options menu state instance.
Definition: Game.hpp:176
static ScreenState *const getMenuScreenState()
Get a pointer to the Menu ScreenState.
Definition: Game.hpp:86
static int getMusicVolume()
Get the global setting for music volume.
Definition: Game.hpp:151
static void setScalingFactor(glm::vec2 f)
Set the global scaling factor for drawing.
Definition: Game.hpp:146
static void levelSelect()
Run the LevelSelect state.
static ScreenState * m_state
Current state instance.
Definition: Game.hpp:180
static bool isRunning()
Check if the Game is running.
Definition: Game.hpp:130
static Uint32 m_levelSelected
The current level selected by the player.
Definition: Game.hpp:186