Defines the UI manager.
More...
#include <menu.h>
◆ clearMenu()
| void ConsoleUI::UIManager::clearMenu |
( |
const std::string & |
name | ) |
|
Removes the named menu from the UI.
- Parameters
-
◆ createAsciiArt()
| AsciiArt ConsoleUI::UIManager::createAsciiArt |
( |
const std::string & |
name, |
|
|
const std::vector< std::string > & |
artLines, |
|
|
int |
x = -1, |
|
|
int |
y = -1 |
|
) |
| |
Create a Ascii Art object.
- Parameters
-
| name | the name of the art |
| artLines | the vector of strings representing the art |
| x | left most position |
| y | top most position |
- Returns
- AsciiArt
◆ createMenu()
| Menu & ConsoleUI::UIManager::createMenu |
( |
const std::string & |
name, |
|
|
bool |
horizontal = false |
|
) |
| |
Create the UI menu.
- Parameters
-
| name | Name of the menu |
| horizontal | is the menu layout horizontal |
- Returns
- Menu&
◆ getMenu()
| Menu & ConsoleUI::UIManager::getMenu |
( |
const std::string & |
name | ) |
|
Get the Menu object by it's name.
- Parameters
-
| name | the name of the menu to retrieve |
- Returns
- Menu&
◆ getScenes()
| std::vector<std::shared_ptr<Scene> >& ConsoleUI::UIManager::getScenes |
( |
| ) |
|
|
inline |
Get the Scenes of the UI.
- Returns
- std::vector<std::shared_ptr<Scene>>&
◆ getWindow()
| std::shared_ptr< ConsoleWindow > ConsoleUI::UIManager::getWindow |
( |
| ) |
|
Get the Window object.
- Returns
- std::shared_ptr<ConsoleWindow>
◆ setCurrentScene()
| void ConsoleUI::UIManager::setCurrentScene |
( |
std::shared_ptr< Scene > |
scene | ) |
|
Set the Current Scene object.
- Parameters
-
◆ m_currentScene
| std::shared_ptr<Scene> ConsoleUI::UIManager::m_currentScene |
pointer to the current scene
◆ m_menus
| std::unordered_map<std::string, Menu> ConsoleUI::UIManager::m_menus |
all of the menus in the UI
◆ m_window
pointer to the current window
The documentation for this class was generated from the following files:
- /home/runner/work/StudyDungeon/StudyDungeon/src/menu.h
- /home/runner/work/StudyDungeon/StudyDungeon/src/menu.cpp