R-Type
|
#include <RTypeClient.hpp>
RType::Client::RTypeClient::RTypeClient | ( | const std::string & | address = "127.0.0.1" , |
unsigned short | port = 8080 |
||
) |
RType::Client::RTypeClient::~RTypeClient | ( | ) |
void RType::Client::RTypeClient::deleteEntity | ( | struct RType::Protocol::EntityIdData | entityId | ) |
Function that delete a Entity.
entity | delete the corresponding entity |
void RType::Client::RTypeClient::gameLoop | ( | ) |
Game Loop from the client.
void RType::Client::RTypeClient::getCollisionInformation | ( | struct RType::Protocol::CollisionData | collisionData | ) |
void RType::Client::RTypeClient::getTextureInformation | ( | struct RType::Protocol::TextureData | textureData | ) |
void RType::Client::RTypeClient::getTransformInformation | ( | struct RType::Protocol::TransformData | transformData | ) |
void RType::Client::RTypeClient::handleCollisionComponent | ( | struct RType::Event | event | ) |
void RType::Client::RTypeClient::handleControllableComponent | ( | struct RType::Event | event | ) |
void RType::Client::RTypeClient::handleDisconnexion | ( | struct RType::Event | event | ) |
Function that will handle when entity needed to be delete.
event | struct that will contain the information about the entity |
void RType::Client::RTypeClient::handleEndGame | ( | struct RType::Event | event | ) |
void RType::Client::RTypeClient::handleEntity | ( | struct RType::Event | event | ) |
Function that will handle when entity needed to be update.
event | struct that will contain the information about the entity |
void RType::Client::RTypeClient::handleEvent | ( | ) |
Function that will handle every event from the UDP Client.
void RType::Client::RTypeClient::handleInput | ( | struct GameEngine::Input::InputInfo | inputData | ) |
void RType::Client::RTypeClient::handleMoveInput | ( | std::vector< std::byte > | data, |
struct GameEngine::Input::InputInfo | input | ||
) |
void RType::Client::RTypeClient::handleNewEntity | ( | struct RType::Event | event | ) |
Function that will handle when new entity needed to be create.
event | struct that will contain the information about the new entity |
void RType::Client::RTypeClient::handlePlayerMovement | ( | ) |
Function that will handle when entity needed to be move.
event | struct that will contain the information about the entity |
void RType::Client::RTypeClient::handlePlayerShoot | ( | ) |
void RType::Client::RTypeClient::handleQuit | ( | ) |
void RType::Client::RTypeClient::handleScore | ( | struct RType::Event | event | ) |
void RType::Client::RTypeClient::handleTextureComponent | ( | struct RType::Event | event | ) |
void RType::Client::RTypeClient::handleTextureState | ( | struct RType::Event | event | ) |
void RType::Client::RTypeClient::handleTransformComponent | ( | struct RType::Event | event | ) |
void RType::Client::RTypeClient::parallaxCollision | ( | const std::size_t & | entityId, |
SparseArray< GameEngine::CollisionComponent > & | collisions, | ||
SparseArray< GameEngine::TransformComponent > & | transforms | ||
) |
void RType::Client::RTypeClient::playerCollisionCallback | ( | const std::size_t & | entityId, |
SparseArray< GameEngine::CollisionComponent > & | collisions, | ||
SparseArray< GameEngine::TransformComponent > & | transforms | ||
) |
void RType::Client::RTypeClient::runTcpServer | ( | ) |
void RType::Client::RTypeClient::runUdpServer | ( | ) |
void RType::Client::RTypeClient::setCollisionCallback | ( | ) |
void RType::Client::RTypeClient::setCollisionInformation | ( | struct RType::Protocol::CollisionData | collisionData, |
GameEngine::Entity & | entity | ||
) |
void RType::Client::RTypeClient::setControllable | ( | struct RType::Protocol::ControllableData | controllableData | ) |
void RType::Client::RTypeClient::setControllableCallback | ( | ) |
void RType::Client::RTypeClient::setDeleteEntityCallback | ( | ) |
void RType::Client::RTypeClient::setEndGameCallback | ( | ) |
void RType::Client::RTypeClient::setEndGameState | ( | struct RType::Protocol::EndGameData | endGameData | ) |
void RType::Client::RTypeClient::setGameEngine | ( | ) |
void RType::Client::RTypeClient::setGameEngineCallback | ( | ) |
void RType::Client::RTypeClient::setGameEngineComponent | ( | ) |
Set every component to the registry of the game engine.
void RType::Client::RTypeClient::setGameEngineScene | ( | ) |
void RType::Client::RTypeClient::setGameEngineSystem | ( | ) |
Set every system to the registry of the game engine.
void RType::Client::RTypeClient::setInputCallback | ( | ) |
void RType::Client::RTypeClient::setMovementEntityCallback | ( | ) |
void RType::Client::RTypeClient::setPrefab | ( | ) |
void RType::Client::RTypeClient::setScore | ( | struct RType::Protocol::ScoreData | scoreData | ) |
void RType::Client::RTypeClient::setScoreCallback | ( | ) |
void RType::Client::RTypeClient::setTextureCallback | ( | ) |
void RType::Client::RTypeClient::setTextureInformation | ( | struct RType::Protocol::TextureData | textureData, |
GameEngine::Entity & | entity | ||
) |
void RType::Client::RTypeClient::setTextureState | ( | struct RType::Protocol::StatePlayerData | transformData | ) |
void RType::Client::RTypeClient::setTextureStateCallback | ( | ) |
void RType::Client::RTypeClient::setTransformCallback | ( | ) |
void RType::Client::RTypeClient::setupGame | ( | ) |
void RType::Client::RTypeClient::setupScoreText | ( | ) |
void RType::Client::RTypeClient::setupTextureEntity | ( | ) |
void RType::Client::RTypeClient::shootEvent | ( | const GameEngine::TransformComponent & | transform | ) |
void RType::Client::RTypeClient::startNetwork | ( | bool & | isRunning | ) |
Start the Network from the client in a thread.
isRunning | boolean to know if the server is down |
void RType::Client::RTypeClient::updatePlayerMovement | ( | const GameEngine::TransformComponent & | transform | ) |
Function that delete a Entity.
entity | delete the corresponding entity |