RType
Public Member Functions | Protected Attributes | List of all members
ISceneRType Class Referenceabstract

#include <IScene.hpp>

Inheritance diagram for ISceneRType:
Inheritance graph
[legend]

Public Member Functions

virtual ~ISceneRType ()=default
 Construct a new IScene:: IScene object. More...
 
virtual void display ()=0
 display, display the scene More...
 
virtual void update (std::shared_ptr< Event > event, std::shared_ptr< Packet > packet)=0
 update, update the scene More...
 
virtual void pauseScene ()=0
 pauseScene, pause the scene More...
 
virtual void resumeScene ()=0
 resumeScene, resume the scene More...
 
virtual void stopScene ()=0
 stopScene, stop the scene More...
 
virtual void restartScene ()=0
 restartScene, restart the scene More...
 
virtual void addEntity (std::shared_ptr< IEntity > entity)=0
 addEntity, add an entity More...
 
virtual std::vector< std::shared_ptr< IEntity > > getEntities ()=0
 getEntities, get the entities More...
 
virtual void addService (std::shared_ptr< IService > service)=0
 addService, add a service More...
 
virtual std::vector< std::shared_ptr< IService > > getServices ()=0
 getServices, get the services More...
 
virtual void sendGameState (int clientId)=0
 sendGameState, send the game state to a client More...
 
virtual void broadcastGameState ()=0
 broadcastGameState, broadcast the game state 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< IEntity > > _entities
 
std::vector< std::shared_ptr< IService > > _services
 
std::shared_ptr< ServerSocket_serverSocket
 

Detailed Description

Definition at line 20 of file IScene.hpp.

Constructor & Destructor Documentation

◆ ~ISceneRType()

virtual ISceneRType::~ISceneRType ( )
virtualdefault

Construct a new IScene:: IScene object.

Parameters
serverSocket

Member Function Documentation

◆ addEntity()

virtual void ISceneRType::addEntity ( std::shared_ptr< IEntity entity)
pure virtual

addEntity, add an entity

Parameters
entity

Implemented in AScene.

◆ addService()

virtual void ISceneRType::addService ( std::shared_ptr< IService service)
pure virtual

addService, add a service

Parameters
service

Implemented in AScene.

◆ broadcastGameState()

virtual void ISceneRType::broadcastGameState ( )
pure virtual

broadcastGameState, broadcast the game state

Implemented in AScene.

◆ display()

virtual void ISceneRType::display ( )
pure virtual

display, display the scene

Implemented in AScene.

◆ getEntities()

virtual std::vector<std::shared_ptr<IEntity> > ISceneRType::getEntities ( )
pure virtual

getEntities, get the entities

Returns
entities (std::vector<std::shared_ptr<IEntity>>)

Implemented in AScene.

◆ getServices()

virtual std::vector<std::shared_ptr<IService> > ISceneRType::getServices ( )
pure virtual

getServices, get the services

Returns
services (std::vector<std::shared_ptr<IService>>)

Implemented in AScene.

◆ initEntities()

virtual void ISceneRType::initEntities ( )
pure virtual

initEntities, init the entities

Implemented in LobbyScene.

Referenced by AScene::restartScene().

Here is the caller graph for this function:

◆ initServices()

virtual void ISceneRType::initServices ( )
pure virtual

initServices, init the services

Implemented in LobbyScene.

Referenced by AScene::restartScene().

Here is the caller graph for this function:

◆ pauseScene()

virtual void ISceneRType::pauseScene ( )
pure virtual

pauseScene, pause the scene

Implemented in AScene, and AScene.

◆ restartScene()

virtual void ISceneRType::restartScene ( )
pure virtual

restartScene, restart the scene

Implemented in AScene.

◆ resumeScene()

virtual void ISceneRType::resumeScene ( )
pure virtual

resumeScene, resume the scene

Implemented in AScene, and AScene.

◆ sendGameState()

virtual void ISceneRType::sendGameState ( int  clientId)
pure virtual

sendGameState, send the game state to a client

Parameters
clientId

Implemented in AScene.

◆ stopScene()

virtual void ISceneRType::stopScene ( )
pure virtual

stopScene, stop the scene

Implemented in AScene, and AScene.

◆ update()

virtual void ISceneRType::update ( std::shared_ptr< Event event,
std::shared_ptr< Packet packet 
)
pure virtual

update, update the scene

Parameters
event
packet

Implemented in LobbyScene.

Member Data Documentation

◆ _entities

std::vector<std::shared_ptr<IEntity> > ISceneRType::_entities
protected

Definition at line 112 of file IScene.hpp.

◆ _serverSocket

std::shared_ptr<ServerSocket> ISceneRType::_serverSocket
protected

Definition at line 114 of file IScene.hpp.

◆ _services

std::vector<std::shared_ptr<IService> > ISceneRType::_services
protected

Definition at line 113 of file IScene.hpp.


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