X-Git-Url: https://jfr.im/git/irc/gameservirc.git/blobdiff_plain/23ec3ff452f4d65d95fcc1995387f7c346f7da82..37ed80a99c033d815fcef9a7d1c8b48ef334220d:/gameserv/aClient.h?ds=sidebyside diff --git a/gameserv/aClient.h b/gameserv/aClient.h index 79b9290..b711021 100644 --- a/gameserv/aClient.h +++ b/gameserv/aClient.h @@ -2,8 +2,10 @@ #define ACLIENT_H #include +#include "options.h" #include "player.h" #include + using std::ostream; class Player; // forward declaration @@ -14,6 +16,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 +31,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 @@ -34,6 +47,9 @@ class aClient { long int remFlag(long int); // Removes a flag from the client's current flags private: + #ifdef P10 + 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. };