bettola/srv/game/player.cpp
Ritchie Cunningham ad2a540554 [Refactor] Unify client and server player classes.
A bit of an architectural change before we progress further. Moved
player code into a shared PlayerBass class to elimnate some severe code
duplication while i was getting things working.
2025-09-16 00:10:35 +01:00

16 lines
345 B
C++

#include <string.h>
#include <math.h>
#include "player.h"
#include "bettola/game/player_base.h"
#include "bettola/network/tcpsocket.h"
Player::Player(BettolaLib::Network::TCPSocket* socket) :
PlayerBase(),
_socket(socket),
_has_udp_addr(false) {
_last_processed_sequence = 0;
memset(&_udp_addr, 0, sizeof(_udp_addr));
}