]>
jfr.im git - irc/gameservirc.git/blob - gameserv/aClient.cpp
5 aClient::aClient(char *n
)
7 cout
<< "aClient created: "
8 << (n
[0] == '\0' ? "NULL" : n
) << endl
;
13 aClient::aClient(const aClient
&right
)
15 cout
<< "aClient created from another aClient: " << right
.nick
28 cout
<< "aClient deleted: " << *this;
31 cout
<< ' ' << stats
->name
;
37 ostream
&operator<<( ostream
&out
, const aClient
&c
)
39 out
<< (c
.nick
[0] == '\0' ? "NULL" : c
.nick
);
43 void aClient::setData(const aClient
*right
)
47 strcpy(nick
, right
->nick
);
53 cout
<< "Should be setting data for " << right
->stats
->name
<< endl
;
54 stats
->setData(right
->stats
);