X-Git-Url: https://jfr.im/git/irc/gameservirc.git/blobdiff_plain/fc9d2643d68c266370c183d78bd1be20ae3b3b40..7df8f13679b674515640f895ea3acc50e9193164:/gameserv/aClient.h diff --git a/gameserv/aClient.h b/gameserv/aClient.h index 2ffee81..8e6b672 100644 --- a/gameserv/aClient.h +++ b/gameserv/aClient.h @@ -2,6 +2,7 @@ #define ACLIENT_H #include +#include "options.h" #include "player.h" #include using std::ostream; @@ -14,6 +15,11 @@ class aClient { public: aClient(char *); // Constructor takes a char for the nick + + #ifdef P10 + aClient(char *, char *); // Constructor takes a char for the nick and realnick + #endif + aClient(const aClient &); // Copy constructor aClient(); // Default constructor ~aClient(); // Destructor @@ -24,6 +30,12 @@ class aClient { void setNick(char *n) { strcpy(nick, n);}; // Sets the client's nick char *getNick() { return nick; }; // Returns the client's nick + + #ifdef P10 + void setRealNick(char *rn) { strcpy(realnick, rn);}; // Sets the client's realnick + char *getRealNick() { return realnick; }; // Returns the client's real text nickname + #endif + Player *stats; // Pointer to the client's player struct long int getFlags() { return flags; }; // Returns the Client's current flags @@ -35,9 +47,8 @@ class aClient { private: #ifdef P10 - char realnick[32]; // Real Nickname + char realnick[32]; // Client's text nickname. Not the numeric #endif - char nick[32]; // Client's current nickname. Numeric if P10 is used long int flags; // Client's current flags. };