|
| Scene (SceneManager< T > &sceneManager) |
| Constructor for the Scene class.
|
|
virtual | ~Scene ()=default |
| Destructor for the Scene class.
|
|
virtual void | init () |
| Initialize the game scene.
|
|
virtual void | update (float deltaTime) |
| Update the game scene.
|
|
virtual void | draw () |
| Draw the game scene.
|
|
virtual void | cleanup () |
| Handle input for the game scene.
|
|
void | registerObject (const std::shared_ptr< game::GameObject > obj) |
| Add a game object to the scene.
|
|
template<typename ObjectType , typename... Args> |
std::shared_ptr< ObjectType > | createObject (Args &&... args) |
| Create a new game object in the scene.
|
|
std::vector< std::shared_ptr< game::GameObject > > | getObjects () |
| Get game objects in the scene.
|
|
template<typename ObjectType > |
std::vector< std::shared_ptr< ObjectType > > | getObjectView () |
| 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 42 of file scene.h.