Architecture Arcade
Architecture Commune Arcade
Public Member Functions | List of all members
Arcade::Game::IScene Class Referenceabstract

The IScene interface. More...

#include <IScene.hpp>

Collaboration diagram for Arcade::Game::IScene:
Collaboration graph

Public Member Functions

virtual ~IScene ()=default
 
virtual bool init ()=0
 Create the scene. More...
 
virtual void close ()=0
 Close the scene. More...
 
virtual ECS::IEntityManagergetEntityManager ()=0
 Get the entity manager of the scene. More...
 

Detailed Description

The IScene interface.

Constructor & Destructor Documentation

◆ ~IScene()

virtual Arcade::Game::IScene::~IScene ( )
virtualdefault

Member Function Documentation

◆ close()

virtual void Arcade::Game::IScene::close ( )
pure virtual

Close the scene.

It exists because we don't want to destroy all the scene (we might still need it, but we want to dealocate some resource maybe ?)

◆ getEntityManager()

virtual ECS::IEntityManager& Arcade::Game::IScene::getEntityManager ( )
pure virtual

Get the entity manager of the scene.

Returns
The entity manager of the scene

◆ init()

virtual bool Arcade::Game::IScene::init ( )
pure virtual

Create the scene.

It exists because we don't want to create all entities/component at startup time but when the scene is activated

Returns
True if the scene was created, false otherwise

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