source:
network-game/server/Player.h@
36082e8
Last change on this file since 36082e8 was 8e540f4, checked in by , 12 years ago | |
---|---|
|
|
File size: 270 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: |
[8e540f4] | 11 | Player(string name, sockaddr_in addr); |
12 | ~Player(); | |
[2488852] | 13 | |
[8e540f4] | 14 | bool operator == (const Player &p); |
[2488852] | 15 | |
[8e540f4] | 16 | string name; |
17 | sockaddr_in addr; | |
[2488852] | 18 | }; |
19 | ||
20 | #endif |
Note:
See TracBrowser
for help on using the repository browser.