]>
Commit | Line | Data |
---|---|---|
1 | #ifndef ACLIENT_H | |
2 | #define ACLIENT_H | |
3 | ||
4 | #include <string.h> | |
5 | #include <iostream.h> | |
6 | #include "player.h" | |
7 | ||
8 | class Player; // forward declaration | |
9 | ||
10 | class aClient { | |
11 | ||
12 | friend ostream &operator<<( ostream &output, const aClient &c); | |
13 | ||
14 | public: | |
15 | aClient(char *); | |
16 | aClient(const aClient &); | |
17 | aClient(); | |
18 | ~aClient(); | |
19 | ||
20 | void setData(const aClient *); | |
21 | void setNick(char *n) { strcpy(nick, n);}; | |
22 | //const char *getNick() { return nick; }; | |
23 | char *getNick() { return nick; }; | |
24 | Player *stats; | |
25 | ||
26 | private: | |
27 | char nick[32]; | |
28 | }; | |
29 | ||
30 | #endif |