38 const std::string& title,
46 unsigned int screenHeight,
47 unsigned int bitDepth,
48 const std::string& title);
54 const std::string& title);
179 template<
typename Manifest>
AppManager(const sf::VideoMode &videoMode, const std::string &title, UIController &appLogic, sf::RenderWindow &window=WindowManager::getWindow(), Architecture architecture=MVC)
Construct an AppManager with an explicit controller and window.
static void reset()
Full application reset — clears events, messages, and components.
void addComponent(Core &component)
Register a Core object with the application's component manager.
ApplicationBase(unsigned int screenWidth, unsigned int screenHeight, unsigned int bitDepth, const std::string &title)
Construct from pixel dimensions and bit depth.
static void clearEvents()
Clear all event subscriptions across the entire application.
ApplicationBase(const sf::VideoMode &videoMode, const std::string &title)
Construct from an SFML video mode, using *this as the controller.
ApplicationBase(const sf::VideoMode &videoMode, const std::string &title, UIController &appLogic, sf::RenderWindow &window=WindowManager::getWindow())
Construct with a separate UIController and explicit video mode.
Primary entry point for Malena applications without a manifest.
void registerEvents() override=0
Attach event callbacks to components and framework objects.
void initialization() override=0
Create and register all components and resources.
ApplicationBase(const sf::VideoMode &videoMode, const std::string &title, UIController &appLogic, sf::RenderWindow &window=WindowManager::getWindow())
Construct with a separate UIController and explicit video mode.
Entry point for Malena applications with a manifest.
ml::ManifestResources< Manifest > Resources
Unified resource accessor — Resources::get(Images::Icon).
void registerEvents() override=0
Attach event callbacks to components and framework objects.
void initialization() override=0
Create and register all components and resources.
ApplicationBase(const sf::VideoMode &videoMode, const std::string &title, UIController &appLogic, sf::RenderWindow &window=WindowManager::getWindow())
Construct with a separate UIController and explicit video mode.
Virtual base class for all Malena framework objects.
Concrete Controller base with a per-frame update hook.
sf::RenderWindow & getWindow()
Return the framework's shared sf::RenderWindow.
Unified manifest resource and config accessor.