|
| | Scene (SceneManager< T > &manager) |
| | Constructor for the Scene class.
|
| |
| virtual | ~Scene ()=default |
| | Destructor for the Scene class.
|
| |
| virtual void | init () |
| | Initialize the game scene.
|
| |
| virtual void | update (float dt) |
| | Update the game scene.
|
| |
| virtual void | draw () |
| | Draw the game scene.
|
| |
| virtual void | cleanup () |
| | Handle input for the game scene.
|
| |
| void | register_object (const std::shared_ptr< game::GameObject > &obj) |
| | Add a game object to the scene.
|
| |
| template<typename ObjectType , typename... Args> |
| std::shared_ptr< ObjectType > | create_object (Args &&... args) |
| | Create a new game object in the scene.
|
| |
| const std::vector< std::shared_ptr< game::GameObject > > & | get_objects () const |
| | Get game objects in the scene.
|
| |
| template<typename ObjectType > |
| std::vector< std::shared_ptr< ObjectType > > | get_object_view () |
| | Get game objects of a specific type in the scene.
|
| |
template<typename T>
class asw::scene::Scene< T >
Base class for game scenes.
- Template Parameters
-
| T | The type of the scene ID. |
This class defines the interface for game scenes in the scene engine.
Definition at line 41 of file scene.h.