45 void update(
float _deltaTime);
105 std::forward_list<GameMessage> _eventsFromGame;
110 std::forward_list<GameMessage> _eventsFromServer;
A utility class for dispatching and handling game events.
Represents the main game logic and state management.
std::forward_list< std::string > getGameEvents(void)
Retrieves game messages.
void onGameEventReceived(const GameMessage &event)
Handles an event received during gameplay.
void update(float _deltaTime)
Updates the game state for the current frame.
Game()
Constructs a new Game object.
std::forward_list< std::string > getCurrentGameState(void)
Gets the current game state (syncing)
~Game()
Destroys the Game object.
void onServerEventReceived(std::string &event)
Handles an event received from server.
A thread-safe queue for storing and managing GameMessage objects.
Manages entities and their associated components, enabling the creation, deletion,...
A structure representing a game message.