16#include "../common/Logger/Logger.hpp"
17#include "Core/EventBus/EventBus.hpp"
49 Client(
const std::string &playerName,
const std::string &host, uint16_t port,
bool isSpectator =
false);
59 Client(
const std::string &playerName,
const std::string &username,
const std::string &password,
60 const std::string &host, uint16_t port);
86 void SetCredentials(
const std::string &username,
const std::string &password);
93 void SetServer(
const std::string &host, uint16_t port);
R-Type client application.
bool initialize()
Initialize client systems.
void SetServer(const std::string &host, uint16_t port)
Set server address and port.
std::unique_ptr< Replicator > _replicator
~Client()
Destructor - clean shutdown.
bool connectToServer()
Connect to server.
void stop()
Stop the client.
std::unique_ptr< GameLoop > _gameLoop
bool Connect()
Connect to the configured server.
void SetCredentials(const std::string &username, const std::string &password)
Update credentials for next connection attempt.
void run()
Run the client (Start Game Loop directly)
std::unique_ptr< EventBus > _eventBus