|
GigaPasjans
|
Main game class managing the Solitaire session. More...
#include <Solitaire.h>


Public Member Functions | |
| Phosphorus::ProductInfo | GetProductInfo () override |
| Returns metadata about the game product. | |
| Solitaire (Phosphorus::GameOptions &options) | |
| void | Run () override |
| Starts the game loop. | |
| void | OnSurfaceCallback (const String &id) override |
| Called when a UI surface interaction occurs. | |
| void | OnRender () override |
| Renders the game frame. | |
| void | PushScreen (IScreen *screen) |
| Pushes a new screen onto the stack. | |
| void | PopScreen (int32 count=1) |
| Pops one or more screens from the stack. | |
| void | PlayOneShot (const String &path) |
| Plays a sound from the given file path. | |
| void | SetTitle (const WideString &title) |
| Sets the window or UI title. | |
| void | OnWin () |
| Called when the game is won. | |
| void | OnLoadFromFile () |
| Loads a saved game session from file. | |
| void | OnNewGame () |
| Starts a new game session. | |
| Phosphorus::VfsManager & | GetVfsManager () |
| Returns virtual file system manager. | |
| void | ProvideActions (Andromenda::ActionRegistry ®istry) override |
| Provides UI and input actions to the action registry. | |
Public Member Functions inherited from Phosphorus::IGame | |
| IGame (GameOptions &options, Andromenda::Surface *surface) | |
| void | Register () |
Public Member Functions inherited from Phosphorus::GameObjectRegistry | |
| GameObject * | GetGameObject (const String &identifier) |
| Find GameObject with given name. | |
| void | Clear () |
| Deletes all GameObject from registry. | |
| GameObject * | GetGameObjectByUniqueId (const String &identifier) |
| Find GameObject with unique id. | |
| void | RegisterGameObject (const String &name, GameObject *object) |
| Registers given GameObject. | |
Static Public Member Functions | |
| static SolitaireSettings * | GetSettings () |
| Returns a pointer to global user settings. | |
Public Attributes | |
| GameState | GameState = GameState::Uninitialized |
| Current game state. | |
| SolitaireStatistics * | Statistics = nullptr |
| Pointer to gameplay statistics object. | |
| SolitaireSessionSettings * | SessionSettings = nullptr |
| Pointer to session settings object. | |
Public Attributes inherited from Phosphorus::IGame | |
| GameObject * | GameSettings |
Additional Inherited Members | |
Protected Member Functions inherited from Phosphorus::GameObjectRegistry | |
| std::unordered_map< String, GameObject * > & | getMap () |
| const std::unordered_map< String, GameObject * > & | getMap () const |
Protected Attributes inherited from Phosphorus::IGame | |
| GameOptions | m_Options |
| Game options determined by GameBootstrapper. | |
| Andromenda::Surface * | m_Surface |
| Main game renderer. | |
| VfsManager | m_VfsManager |
| Main game asset manager. | |
Protected Attributes inherited from Phosphorus::GameObjectRegistry | |
| std::unordered_map< String, GameObject * > | m_GameObjects |
Main game class managing the Solitaire session.
|
overridevirtual |
Returns metadata about the game product.
Implements Phosphorus::IGame.
|
overridevirtual |
Renders the game frame.
Implements Phosphorus::IGame.
|
overridevirtual |
Called when a UI surface interaction occurs.
Implements Phosphorus::IGame.
|
overridevirtual |
Provides UI and input actions to the action registry.
Implements Andromenda::IActionProvider.
|
overridevirtual |
Starts the game loop.
Implements Phosphorus::IGame.