source:
network-game/server/Player.h@
41ad8ed
Last change on this file since 41ad8ed was 41ad8ed, checked in by , 12 years ago | |
---|---|
|
|
File size: 351 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 | |
[59061f6] | 15 | void setAddr(sockaddr_in addr); |
16 | ||
[8e540f4] | 17 | string name; |
[59061f6] | 18 | string password; |
[8e540f4] | 19 | sockaddr_in addr; |
[2488852] | 20 | }; |
21 | ||
22 | #endif |
Note:
See TracBrowser
for help on using the repository browser.