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