Game of Ur 0.3.3
This is a computer adaptation of Game of Ur, written in C++ mainly using SDL and OpenGL.
Loading...
Searching...
No Matches
UrUINavigation Class Reference

The aspect class responsible for connecting the UI in the current scene with the game scene manager. Responds to navigation UI events with scene changes. More...

#include <ur_ui_navigation.hpp>

Inheritance diagram for UrUINavigation:

Public Member Functions

std::shared_ptr< BaseSimObjectAspect > clone () const override
 
void loadScene (const std::string &sceneResourceName)
 

Static Public Member Functions

static std::string getSimObjectAspectTypeName ()
 
static std::shared_ptr< BaseSimObjectAspect > create (const nlohmann::json &jsonAspectProperties)
 

Public Attributes

ToyMaker::SignalObserver< const std::string & > mObserveButtonClicked
 

Private Member Functions

void onButtonClicked (const std::string &button)
 

Private Attributes

std::string mSceneManagerPath {}
 

Detailed Description

The aspect class responsible for connecting the UI in the current scene with the game scene manager. Responds to navigation UI events with scene changes.

Member Data Documentation

◆ mObserveButtonClicked

ToyMaker::SignalObserver<const std::string&> UrUINavigation::mObserveButtonClicked
Initial value:
{
*this, "ButtonClickedObserved",
[this](const std::string& button) { this->onButtonClicked(button); }
}

The documentation for this class was generated from the following files: