* 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.
7 lines
147 B
C++
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) {}
|
|
|