#include #include "player.h" #include "network/tcpsocket.h" unsigned int Player::_next_player_id = 0; Player::Player(BettolaLib::Network::TCPSocket* socket) : _socket(socket), _has_udp_addr(false) { /* Try and set a player id to 0 now you audacious pr.ck! */ if(_next_player_id == 0) { _next_player_id = 1; } _id = _next_player_id++; _x = 0.0f; _y = 0.0f; memset(&_udp_addr, 0, sizeof(_udp_addr)); }