bettola/srv/game/player.cpp

18 lines
395 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),
_chunk_x(INT_MAX),
_chunk_z(INT_MAX) {
_last_processed_sequence = 0;
memset(&_udp_addr, 0, sizeof(_udp_addr));
}