|
RType
|
#include <Lobby.hpp>


Public Member Functions | |
| LobbyScene (std::shared_ptr< ServerSocket > serverSocket) | |
| Construct a new LobbyScene object. More... | |
| ~LobbyScene () override=default | |
| Destroy the LobbyScene object. More... | |
| void | initScene () |
| initScene, init the scene More... | |
| void | update (std::shared_ptr< Event > event, std::shared_ptr< Packet > packet) override |
| display, display the scene More... | |
| void | checkBulletDeletion () |
| checkBulletDeletion, check the bullet deletion More... | |
| void | checkSpawnerActivation () |
| bool | allEnemiesLeftScreen () |
| bool | allBulletsLeftScreen () |
| void | spawnBoss () |
| initServices, init the services More... | |
| void | shootBoss (int nb) |
| shootBoss, boss attacks More... | |
| void | enemyDeletion () |
| void | bulletDeletion () |
| void | initEntities () override |
| initEntities, init the entities More... | |
| void | initServices () override |
| initServices, init the services More... | |
Public Member Functions inherited from AScene | |
| 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... | |
Additional Inherited Members | |
Public Attributes inherited from IScene | |
| bool | continueScene = true |
Protected Attributes inherited from AScene | |
| 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 |
|
explicit |
Construct a new LobbyScene object.
Construct a new LobbyScene:: LobbyScene object.
| serverSocket |
Definition at line 19 of file Lobby.cpp.
References initScene(), and LobbyScene().
Referenced by LobbyScene().


|
overridedefault |
Destroy the LobbyScene object.
| bool LobbyScene::allBulletsLeftScreen | ( | ) |
| bool LobbyScene::allEnemiesLeftScreen | ( | ) |
| void LobbyScene::bulletDeletion | ( | ) |
| void LobbyScene::checkBulletDeletion | ( | ) |
| void LobbyScene::checkSpawnerActivation | ( | ) |
Definition at line 293 of file Lobby.cpp.
References AScene::broadcastGameState(), ENEMY, generateRandomNumber(), newComponent::id, SPRITESOCKET, and newComponent::type.
Referenced by update().


| void LobbyScene::enemyDeletion | ( | ) |
|
overridevirtual |
initEntities, init the entities
Implements ISceneRType.
Definition at line 43 of file Lobby.cpp.
Referenced by initScene().

| void LobbyScene::initScene | ( | ) |
initScene, init the scene
Definition at line 34 of file Lobby.cpp.
References initEntities(), and initServices().
Referenced by LobbyScene().


|
overridevirtual |
initServices, init the services
Implements ISceneRType.
Definition at line 278 of file Lobby.cpp.
Referenced by initScene().

| void LobbyScene::shootBoss | ( | int | nb | ) |
| void LobbyScene::spawnBoss | ( | ) |
|
overridevirtual |
display, display the scene
update, update the scene
| event | |
| window | |
| event | |
| packet |
Implements ISceneRType.
Definition at line 419 of file Lobby.cpp.
References allBulletsLeftScreen(), allEnemiesLeftScreen(), AScene::broadcastGameState(), BULLET, bulletDeletion(), checkBulletDeletion(), checkSpawnerActivation(), enemyDeletion(), generateRandomNumber(), newComponent::id, PLAYER, AScene::sendGameState(), shootBoss(), spawnBoss(), SPRITESOCKET, and newComponent::type.
