Planeshift
gemActor::ChatHistoryEntry Struct Reference

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. More...
 
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. More...
 

Public Attributes

csString _line
 Info: Actual text. (Preformated depending on chat type) More...
 
time_t _time
 Info: Time this line was said. More...
 

Detailed Description

Info: Stores a chat history element.

Definition at line 1217 of file gem.h.

Constructor & Destructor Documentation

gemActor::ChatHistoryEntry::ChatHistoryEntry ( const char *  szLine,
time_t  t = 0 
)

Info: Constructor. When no time is given, current time is used.

Member Function Documentation

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.

Member Data Documentation

csString gemActor::ChatHistoryEntry::_line

Info: Actual text. (Preformated depending on chat type)

Definition at line 1223 of file gem.h.

time_t gemActor::ChatHistoryEntry::_time

Info: Time this line was said.

Definition at line 1220 of file gem.h.


The documentation for this struct was generated from the following file: