ConsoleLine Class Reference

#include <ConsoleLines.h>

List of all members.

Public Types

enum  LineType { eNone, eCommand, eCommandCont }

Public Member Functions

 ConsoleLine ()
virtual ~ConsoleLine ()
void set (const LangString &line, LineType type)
void drawLine (float x, float y, GLFont2d *font)
LineType getLineType ()
const LangStringgetLine ()

Protected Attributes

unsigned int lineNumber_
LangString line_
LangString lineNumberStr_
LineType lineType_

Static Protected Attributes

static unsigned nextLineNumber_ = 0


Detailed Description

Definition at line 28 of file ConsoleLines.h.


Member Enumeration Documentation

enum ConsoleLine::LineType

Enumerator:
eNone 
eCommand 
eCommandCont 

Definition at line 31 of file ConsoleLines.h.


Constructor & Destructor Documentation

ConsoleLine::ConsoleLine (  ) 

Definition at line 27 of file ConsoleLines.cpp.

ConsoleLine::~ConsoleLine (  )  [virtual]

Definition at line 33 of file ConsoleLines.cpp.


Member Function Documentation

void ConsoleLine::set ( const LangString line,
LineType  type 
)

Definition at line 38 of file ConsoleLines.cpp.

References eCommand, eCommandCont, S3D::formatStringBuffer(), LANG_STRING, line_, lineNumber_, lineNumberStr_, lineType_, and nextLineNumber_.

Referenced by ConsoleLines::addSmallLine().

void ConsoleLine::drawLine ( float  x,
float  y,
GLFont2d font 
)

Definition at line 53 of file ConsoleLines.cpp.

References GLFont2d::draw(), eCommand, eNone, line_, lineNumberStr_, and lineType_.

Referenced by ConsoleLines::drawLines().

LineType ConsoleLine::getLineType (  )  [inline]

Definition at line 44 of file ConsoleLines.h.

References lineType_.

const LangString& ConsoleLine::getLine (  )  [inline]

Definition at line 45 of file ConsoleLines.h.

References line_.


Member Data Documentation

unsigned int ConsoleLine::lineNumber_ [protected]

Definition at line 48 of file ConsoleLines.h.

Referenced by set().

LangString ConsoleLine::line_ [protected]

Definition at line 49 of file ConsoleLines.h.

Referenced by drawLine(), getLine(), and set().

LangString ConsoleLine::lineNumberStr_ [protected]

Definition at line 50 of file ConsoleLines.h.

Referenced by drawLine(), and set().

unsigned ConsoleLine::nextLineNumber_ = 0 [static, protected]

Definition at line 51 of file ConsoleLines.h.

Referenced by set().

LineType ConsoleLine::lineType_ [protected]

Definition at line 52 of file ConsoleLines.h.

Referenced by drawLine(), getLineType(), and set().


The documentation for this class was generated from the following files:
Generated on Mon Feb 16 15:15:01 2009 for Scorched3D by  doxygen 1.5.3