Scene, Entity and global game management.
More...
#include <World.hpp>
|
| World () noexcept |
| Constructor.
|
|
| World (World &&) |
| Move constructor.
|
|
World & | operator= (World &&) |
| Move assignment operator.
|
|
virtual | ~World () |
| Destructor.
|
|
void | update () override |
| Process events and updates.
|
|
void | render () |
| Render scenes.
|
|
void | clear () |
| Removes all data.
|
|
| StateMachine () noexcept |
| Constructor.
|
|
| StateMachine (StateMachine< Stored > &&) |
| Move constructor.
|
|
StateMachine< Stored > & | operator= (StateMachine< Stored > &&) |
| Move assignment operator.
|
|
virtual | ~StateMachine () |
| Destructor.
|
|
std::shared_ptr< Stored > | add (const std::string &key, Args &&... args) |
| Add a new state.
|
|
std::shared_ptr< Stored > | get (const std::string &key) noexcept |
| Get a specific state.
|
|
bool | has (const std::string &key) noexcept |
| Does a state exist.
|
|
void | remove (const std::string &key) |
| Remove a specific state.
|
|
void | push (const std::string &key) noexcept |
| Push a state onto the top of stack.
|
|
void | pop () noexcept |
| Remove state on top of stack.
|
|
void | pop_all () noexcept |
| Remove all states in stack.
|
|
std::shared_ptr< Stored > | top () const noexcept |
| Get top state in stack.
|
|
Stack & | stack () noexcept |
| Get stack.
|
|
Map & | storage () noexcept |
| Get storage.
|
|
Scene, Entity and global game management.
Definition at line 19 of file World.hpp.
◆ World() [1/3]
◆ World() [2/3]
galaxy::World::World |
( |
World && | w | ) |
|
Move constructor.
Definition at line 17 of file World.cpp.
◆ ~World()
galaxy::World::~World |
( |
| ) |
|
|
virtual |
◆ World() [3/3]
galaxy::World::World |
( |
const World & | | ) |
|
|
privatedelete |
◆ operator=() [1/2]
Move assignment operator.
Definition at line 22 of file World.cpp.
◆ update()
void galaxy::World::update |
( |
| ) |
|
|
overridevirtual |
◆ render()
void galaxy::World::render |
( |
| ) |
|
Render scenes.
Definition at line 45 of file World.cpp.
◆ clear()
void galaxy::World::clear |
( |
| ) |
|
Removes all data.
Definition at line 53 of file World.cpp.
◆ operator=() [2/2]
World & galaxy::World::operator= |
( |
const World & | | ) |
|
|
privatedelete |
Copy assignment operator.
◆ m_registry
The documentation for this class was generated from the following files: