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

#include <IScene.hpp>

Inheritance diagram for IScene:
Inheritance graph
[legend]
Collaboration diagram for IScene:
Collaboration graph
[legend]

Public Member Functions

 IScene (ClientCore *clientCore)
 IScene, constructor of IScene. More...
 
virtual ~IScene ()=default
 ~IScene, destructor of IScene More...
 
virtual void addComponent (std::shared_ptr< IComponent > component)=0
 addComponent, add a component More...
 
virtual std::vector< std::shared_ptr< IComponent > > getComponents ()=0
 getComponents, get all the components More...
 
virtual void display (sf::RenderWindow &window)=0
 display, display the scene More...
 
virtual void update ()=0
 update, update the scene More...
 
virtual void handleEvent (const sf::Event &event, sf::RenderWindow &window)=0
 handleEvent, handle the event More...
 
virtual void receiveData ()=0
 receiveData, receive the data 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...
 

Public Attributes

bool continueScene = true
 

Protected Attributes

ClientCore_clientCore
 
timeval _pingTime {}
 

Detailed Description

Definition at line 17 of file IScene.hpp.

Constructor & Destructor Documentation

◆ IScene()

IScene::IScene ( ClientCore clientCore)
inlineexplicit

IScene, constructor of IScene.

Parameters
clientCore

Definition at line 26 of file IScene.hpp.

References _clientCore.

Referenced by AScene::AScene().

Here is the caller graph for this function:

◆ ~IScene()

virtual IScene::~IScene ( )
virtualdefault

~IScene, destructor of IScene

Member Function Documentation

◆ addComponent()

virtual void IScene::addComponent ( std::shared_ptr< IComponent component)
pure virtual

addComponent, add a component

Parameters
component

Implemented in AScene.

◆ display()

virtual void IScene::display ( sf::RenderWindow &  window)
pure virtual

display, display the scene

Parameters
window

Implemented in AScene.

◆ getComponents()

virtual std::vector<std::shared_ptr<IComponent> > IScene::getComponents ( )
pure virtual

getComponents, get all the components

Returns
std::vector<std::shared_ptr<IComponent>>

Implemented in AScene.

◆ handleEvent()

virtual void IScene::handleEvent ( const sf::Event event,
sf::RenderWindow &  window 
)
pure virtual

handleEvent, handle the event

Parameters
event
window

Implemented in MenuScene, MainScene, GameScene, and AScene.

◆ pauseScene()

virtual void IScene::pauseScene ( )
pure virtual

pauseScene, pause the scene

Implemented in AScene, and AScene.

◆ receiveData()

virtual void IScene::receiveData ( )
pure virtual

receiveData, receive the data

Implemented in MenuScene, MainScene, and GameScene.

◆ resumeScene()

virtual void IScene::resumeScene ( )
pure virtual

resumeScene, resume the scene

Implemented in AScene, and AScene.

◆ stopScene()

virtual void IScene::stopScene ( )
pure virtual

stopScene, stop the scene

Implemented in AScene, and AScene.

◆ update()

virtual void IScene::update ( )
pure virtual

update, update the scene

Implemented in AScene.

Member Data Documentation

◆ _clientCore

ClientCore* IScene::_clientCore
protected

◆ _pingTime

timeval IScene::_pingTime {}
protected

◆ continueScene

bool IScene::continueScene = true

Definition at line 90 of file IScene.hpp.


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