#ifndef _PLAYER_H #define _PLAYER_H #include "Compiler.h" #if defined WINDOWS #include #include #elif defined LINUX #include #endif #include #include "Common.h" using namespace std; class Player { public: Player(string name, string password); Player(string name, sockaddr_in addr); // this will be deleted ~Player(); void serialize(char* buffer); void deserialize(char* buffer); void setAddr(sockaddr_in addr); string name; string password; sockaddr_in addr; PLAYER_POS pos; }; #endif