source: network-game/common/Player.h@ 4c202e0

Last change on this file since 4c202e0 was 4c202e0, checked in by dportnoy <dmp1488@…>, 12 years ago

Added Player to the visual studio project, changed Common to use the #defines in Compiler.h, and added basic client support for processing MSG_TYPE_PLAYER messages

  • Property mode set to 100644
File size: 545 bytes
Line 
1#ifndef _PLAYER_H
2#define _PLAYER_H
3
4#include "Compiler.h"
5
6#if defined WINDOWS
7 #include <winsock2.h>
8 #include <WS2tcpip.h>
9#elif defined LINUX
10 #include <netinet/in.h>
11#endif
12
13#include <string>
14
15#include "Common.h"
16
17using namespace std;
18
19class Player {
20public:
21 Player(string name, string password);
22 Player(string name, sockaddr_in addr); // this will be deleted
23 ~Player();
24
25 void setAddr(sockaddr_in addr);
26 void clearSensitiveInfo();
27
28 string name;
29 string password;
30 sockaddr_in addr;
31 PLAYER_POS pos;
32};
33
34#endif
Note: See TracBrowser for help on using the repository browser.