Planeshift
|
Info: Stores a chat history element. More...
#include <gem.h>
Public Member Functions | |
ChatHistoryEntry (const char *szLine, time_t t=0) | |
Info: Constructor. When no time is given, current time is used. | |
void | GetLogLine (csString &line) const |
Prepends a string representation of the time to this chat line so it can be written to a log file. | |
Public Attributes | |
csString | _line |
Info: Actual text. (Preformated depending on chat type) | |
time_t | _time |
Info: Time this line was said. |
gemActor::ChatHistoryEntry::ChatHistoryEntry | ( | const char * | szLine, |
time_t | t = 0 |
||
) |
Info: Constructor. When no time is given, current time is used.
void gemActor::ChatHistoryEntry::GetLogLine | ( | csString & | line | ) | const |
Prepends a string representation of the time to this chat line so it can be written to a log file.
The resulting line is written to 'line' argument (reference). Note: this function also applies
to the line end.
csString gemActor::ChatHistoryEntry::_line |