source:
network-game/server/Player.h@
371ce29
Last change on this file since 371ce29 was 59061f6, checked in by , 12 years ago | |
---|---|
|
|
File size: 391 bytes |
Rev | Line | |
---|---|---|
[2488852] | 1 | #ifndef _PLAYER_H |
2 | #define _PLAYER_H | |
3 | ||
4 | #include <netinet/in.h> | |
5 | #include <string> | |
6 | ||
7 | using namespace std; | |
8 | ||
[8e540f4] | 9 | class Player { |
[2488852] | 10 | public: |
[59061f6] | 11 | Player(string name, string password); |
12 | Player(string name, sockaddr_in addr); // this will be deleted | |
[8e540f4] | 13 | ~Player(); |
[2488852] | 14 | |
[8e540f4] | 15 | bool operator == (const Player &p); |
[2488852] | 16 | |
[59061f6] | 17 | void setAddr(sockaddr_in addr); |
18 | ||
[8e540f4] | 19 | string name; |
[59061f6] | 20 | string password; |
[8e540f4] | 21 | sockaddr_in addr; |
[2488852] | 22 | }; |
23 | ||
24 | #endif |
Note:
See TracBrowser
for help on using the repository browser.