Main application controller for ASAPCabinetFE. More...
#include <app.h>
Public Member Functions | |
ISoundManager * | getSoundManager () override |
App (const std::string &configPath) | |
Constructs an App instance. | |
~App () | |
Destroys the App instance. | |
void | run () |
Runs the main application loop. | |
void | reloadFont (bool isStandalone=false) override |
Reloads the font resource. | |
void | reloadWindows () override |
Reloads window configurations. | |
void | reloadAssetsAndRenderers () override |
Reloads assets and renderers. | |
void | reloadTablesAndTitle () override |
Reloads table data and window title. | |
void | reloadOverlaySettings () override |
Reloads overlay settings. | |
Main application controller for ASAPCabinetFE.
Main application class (forward declaration).
This class implements the IAppCallbacks interface to manage the application lifecycle, including initialization, event handling, updating, rendering, and cleanup. It uses DependencyFactory to create and integrate components like IWindowManager, ImGuiManager, IInputManager, IRenderer, and PlayfieldOverlay, and handles table data, configuration, and UI interactions.
Represents the main application instance of ASAPCabinetFE, used as a dependency in components like ConfigUI. This forward declaration allows the header to reference App without including its full definition.
App::App | ( | const std::string & | configPath | ) |
Constructs an App instance.
Initializes the application with the specified configuration file path.
configPath | The file path to the configuration file. |
App::~App | ( | ) |
Destroys the App instance.
Cleans up all managed components and resources.
|
overridevirtual |
Implements IAppCallbacks.
|
overridevirtual |
Reloads assets and renderers.
Reinitializes asset manager and renderer with current settings and table data.
Implements IAppCallbacks.
|
overridevirtual |
Reloads the font resource.
Reloads the TTF font used for text rendering, optionally for standalone mode.
isStandalone | True for standalone configuration mode, false for main app mode. |
Implements IAppCallbacks.
|
overridevirtual |
Reloads overlay settings.
Updates the playfield overlay with current application settings.
Implements IAppCallbacks.
|
overridevirtual |
Reloads table data and window title.
Reloads table data from the table loader and updates the window title.
Implements IAppCallbacks.
|
overridevirtual |
Reloads window configurations.
Updates SDL windows and renderers using current settings.
Implements IAppCallbacks.
void App::run | ( | ) |
Runs the main application loop.
Executes the application’s main loop, handling events, updating state, and rendering.