]>
jfr.im git - irc/gameservirc.git/blob - gameserv/aClient.h
12 class Player
; // forward declaration
16 friend ostream
&operator<<( ostream
&output
, const aClient
&c
);
19 aClient(char *); // Constructor takes a char for the nick
22 aClient(char *, char *); // Constructor takes a char for the nick and realnick
25 aClient(const aClient
&); // Copy constructor
26 aClient(); // Default constructor
27 ~aClient(); // Destructor
29 // Sets the client's player struct data to the same thing as another aClient's
31 void setData(const aClient
*);
33 void setNick(char *n
) { strcpy(nick
, n
);}; // Sets the client's nick
34 char *getNick() { return nick
; }; // Returns the client's nick
37 void setRealNick(char *rn
) { strcpy(realnick
, rn
);}; // Sets the client's realnick
38 char *getRealNick() { return realnick
; }; // Returns the client's real text nickname
41 Player
*stats
; // Pointer to the client's player struct
43 long int getFlags() { return flags
; }; // Returns the Client's current flags
45 // Functions also return the flags after modifying them
46 long int setFlags(long int); // Sets the clients flags to a new value
47 long int addFlag(long int); // Adds a flag to the client's flags
48 long int remFlag(long int); // Removes a flag from the client's current flags
52 char realnick
[32]; // Client's text nickname. Not the numeric
54 char nick
[32]; // Client's current nickname. Numeric if P10 is used
55 long int flags
; // Client's current flags.