|
RType
|
#include <ClientCore.hpp>
Public Member Functions | |
| ClientCore () | |
| ClientCore, constructor of ClientCore. More... | |
| ~ClientCore ()=default | |
| ~ClientCore, destructor of ClientCore More... | |
| bool | init_socket (const std::string &ip, int port) |
| init_socket, init the socket More... | |
| void | run () |
| run, run the client More... | |
| std::shared_ptr< IScene > | getSceneByName (const std::string &name) |
| getSocket, get the socket More... | |
| void | setCurrentScene (const std::string &name) |
| setCurrentScene, set the current scene More... | |
| std::shared_ptr< IScene > | getCurrentScene () const |
| getCurrentScene, get the current scene More... | |
| void | sendHeartBeat (sf::RenderWindow &window) |
| sendHeartBeat, send the heart beat More... | |
| void | startHeartBeat () |
| startHeartBeat, start the heart beat More... | |
Definition at line 21 of file ClientCore.hpp.
| ClientCore::ClientCore | ( | ) |
ClientCore, constructor of ClientCore.
Construct a new Client Core:: Client Core object.
Definition at line 14 of file ClientCore.cpp.
|
default |
~ClientCore, destructor of ClientCore
| std::shared_ptr< IScene > ClientCore::getCurrentScene | ( | ) | const |
getCurrentScene, get the current scene
Definition at line 113 of file ClientCore.cpp.
| std::shared_ptr< IScene > ClientCore::getSceneByName | ( | const std::string & | name | ) |
getSocket, get the socket
getSceneByName, get the scene by name
| name |
Definition at line 69 of file ClientCore.cpp.
| bool ClientCore::init_socket | ( | const std::string & | ip, |
| int | port | ||
| ) |
init_socket, init the socket
init_socket, initialize the socket with the ip and the port
| ip | |
| port |
| ip | |
| port |
Definition at line 29 of file ClientCore.cpp.
| void ClientCore::run | ( | ) |
run, run the client
Definition at line 43 of file ClientCore.cpp.
Referenced by main().

| void ClientCore::sendHeartBeat | ( | sf::RenderWindow & | window | ) |
| void ClientCore::setCurrentScene | ( | const std::string & | name | ) |
setCurrentScene, set the current scene
| name |
Definition at line 79 of file ClientCore.cpp.
Referenced by ButtonComponent::handleClickAccessGame(), ButtonComponent::handleClickMainScene(), GameScene::handleEvent(), and MenuScene::handleEvent().

| void ClientCore::startHeartBeat | ( | ) |
startHeartBeat, start the heart beat
Definition at line 122 of file ClientCore.cpp.
Referenced by MenuScene::receiveData().
