Planeshift
Public Member Functions | Public Attributes

gemActor::ChatHistoryEntry Struct Reference

Info: Stores a chat history element. More...

#include <gem.h>

List of all members.

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.

Detailed Description

Info: Stores a chat history element.

Definition at line 1213 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

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

Definition at line 1219 of file gem.h.

Info: Time this line was said.

Definition at line 1216 of file gem.h.


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