|
RType
|
#include <AScene.hpp>


Public Member Functions | |
| AScene (ClientCore *clientCore) | |
| AScene, constructor of AScene. More... | |
| ~AScene () override=default | |
| ~AScene, destructor of AScene More... | |
| void | addComponent (std::shared_ptr< IComponent > component) override |
| addComponent, add a component More... | |
| std::vector< std::shared_ptr< IComponent > > | getComponents () override |
| getComponents, get all the components More... | |
| void | display (sf::RenderWindow &window) override |
| display, display the scene More... | |
| void | handleEvent (const sf::Event &event, sf::RenderWindow &window) override |
| handleEvent, handle the event More... | |
| void | update () override |
| update, update the scene More... | |
| void | pauseScene () override |
| pauseScene, pause the scene More... | |
| void | resumeScene () override |
| resumeScene, resume the scene More... | |
| void | stopScene () override |
| stopScene, stop the scene More... | |
| AScene (std::shared_ptr< ServerSocket > serverSocket) | |
| Construct a new AScene:: AScene object. More... | |
| ~AScene () override=default | |
| Destroy the AScene:: AScene object. More... | |
| void | addEntity (std::shared_ptr< IEntity > entity) override |
| addEntity, add an entity More... | |
| std::vector< std::shared_ptr< IEntity > > | getEntities () override |
| getEntities, get the entities More... | |
| void | addService (std::shared_ptr< IService > service) override |
| addService, add a service More... | |
| std::vector< std::shared_ptr< IService > > | getServices () override |
| getServices, get the services More... | |
| void | display () override |
| display, display the scene More... | |
| void | pauseScene () override |
| pauseScene, pause the scene More... | |
| void | resumeScene () override |
| resumeScene, resume the scene More... | |
| void | stopScene () override |
| stopScene, stop the scene More... | |
| void | restartScene () override |
| restartScene, restart the scene More... | |
| void | sendGameState (int clientID) override |
| sendGameState, send the game state More... | |
| void | broadcastGameState () override |
| broadcastGameState, broadcast the game state More... | |
Public Member Functions inherited from IScene | |
| IScene (ClientCore *clientCore) | |
| IScene, constructor of IScene. More... | |
| virtual | ~IScene ()=default |
| ~IScene, destructor of IScene More... | |
| virtual void | receiveData ()=0 |
| receiveData, receive the data More... | |
Public Member Functions inherited from ISceneRType | |
| virtual | ~ISceneRType ()=default |
| Construct a new IScene:: IScene object. More... | |
| virtual void | update (std::shared_ptr< Event > event, std::shared_ptr< Packet > packet)=0 |
| update, update the scene More... | |
| virtual void | initEntities ()=0 |
| initEntities, init the entities More... | |
| virtual void | initServices ()=0 |
| initServices, init the services More... | |
Protected Attributes | |
| std::vector< std::shared_ptr< IComponent > > | _components |
Protected Attributes inherited from IScene | |
| ClientCore * | _clientCore |
| timeval | _pingTime {} |
Protected Attributes inherited from ISceneRType | |
| std::vector< std::shared_ptr< IEntity > > | _entities |
| std::vector< std::shared_ptr< IService > > | _services |
| std::shared_ptr< ServerSocket > | _serverSocket |
Additional Inherited Members | |
Public Attributes inherited from IScene | |
| bool | continueScene = true |
Definition at line 12 of file AScene.hpp.
|
inlineexplicit |
AScene, constructor of AScene.
| clientCore |
Definition at line 21 of file AScene.hpp.
References IScene::IScene().
Referenced by GameScene::GameScene(), MainScene::MainScene(), and MenuScene::MenuScene().


|
overridedefault |
~AScene, destructor of AScene
|
explicit |
Construct a new AScene:: AScene object.
| serverSocket |
Definition at line 16 of file AScene.cpp.
|
overridevirtual |
addComponent, add a component
addComponent, add a component to the scene
| component |
Implements IScene.
Definition at line 14 of file AScene.cpp.
|
overridevirtual |
addEntity, add an entity
| entity |
Implements ISceneRType.
Definition at line 25 of file AScene.cpp.
|
overridevirtual |
addService, add a service
| service |
Implements ISceneRType.
Definition at line 43 of file AScene.cpp.
|
overridevirtual |
broadcastGameState, broadcast the game state
Implements ISceneRType.
Definition at line 119 of file AScene.cpp.
Referenced by LobbyScene::checkSpawnerActivation(), and LobbyScene::update().

|
overridevirtual |
|
overridevirtual |
display, display the scene
| window |
Implements IScene.
Definition at line 32 of file AScene.cpp.
|
overridevirtual |
getComponents, get all the components
getComponents, get all the components of the scene
Implements IScene.
Definition at line 23 of file AScene.cpp.
|
overridevirtual |
getEntities, get the entities
Implements ISceneRType.
Definition at line 34 of file AScene.cpp.
|
overridevirtual |
getServices, get the services
Implements ISceneRType.
Definition at line 52 of file AScene.cpp.
|
overridevirtual |
handleEvent, handle the event
| event | |
| window |
Implements IScene.
Definition at line 48 of file AScene.cpp.
|
overridevirtual |
|
overridevirtual |
pauseScene, pause the scene
Implements IScene.
|
overridevirtual |
restartScene, restart the scene
Implements ISceneRType.
Definition at line 76 of file AScene.cpp.
References ISceneRType::initEntities(), and ISceneRType::initServices().

|
overridevirtual |
|
overridevirtual |
resumeScene, resume the scene
Implements IScene.
|
overridevirtual |
sendGameState, send the game state
sedGameState, send the game state
| clientID |
Implements ISceneRType.
Definition at line 88 of file AScene.cpp.
Referenced by LobbyScene::update().

|
overridevirtual |
|
overridevirtual |
stopScene, stop the scene
Implements IScene.
|
overridevirtual |
|
protected |
Definition at line 82 of file AScene.hpp.