bettola/srv/game/player.cpp
Ritchie Cunningham bd6281c9bc feat(server): Implement server-side game state.
* Added Player class to represent players on the server.
* Added Game class to manage the overall game state.
* Server now adds new players to the game state when they connect.
* Server now updates the players position in the game state on receiving
  a PlayerPosMessage.
2025-09-13 17:10:55 +01:00

7 lines
147 B
C++

#include "player.h"
#include "network/socket.h"
Player::Player(BettolaLib::Network::Socket* socket) :
_x(0.0f), _y(0.0f), _socket(socket) {}