GLWTalkBox Class Reference

#include <GLWTalkBox.h>

Inheritance diagram for GLWTalkBox:

GLWidget MetaClass

List of all members.

Public Types

enum  TalkMode { eSay, eTeamSay }

Public Member Functions

 GLWTalkBox ()
virtual ~GLWTalkBox ()
virtual void draw ()
virtual void simulate (float frameTime)
virtual void keyDown (char *buffer, unsigned int keyState, KeyboardHistory::HistoryElement *history, int hisCount, bool &skipRest)
virtual void display ()
virtual bool initFromXML (XMLNode *node)
 REGISTER_CLASS_HEADER (GLWTalkBox)

Protected Attributes

LangString text_
float ctime_
bool cursor_
int maxTextLen_
bool parentSized_
TalkMode mode_
TalkMode defaultMode_


Detailed Description

Definition at line 27 of file GLWTalkBox.h.


Member Enumeration Documentation

enum GLWTalkBox::TalkMode

Enumerator:
eSay 
eTeamSay 

Definition at line 30 of file GLWTalkBox.h.


Constructor & Destructor Documentation

GLWTalkBox::GLWTalkBox (  ) 

Definition at line 33 of file GLWTalkBox.cpp.

GLWTalkBox::~GLWTalkBox (  )  [virtual]

Definition at line 39 of file GLWTalkBox.cpp.


Member Function Documentation

void GLWTalkBox::draw (  )  [virtual]

Reimplemented from GLWidget.

Definition at line 53 of file GLWTalkBox.cpp.

References GLState::BLEND_ON, cursor_, GLWidget::draw(), GLWidget::drawRoundBox(), GLFont2d::drawWidthRhs(), eSay, S3D::formatStringBuffer(), GLWFont::getGameFont(), GLWidget::getH(), GLWidget::getW(), GL_LINE_LOOP, GL_TRIANGLE_FAN, glBegin(), glColor3f(), glColor4f(), glEnd(), glVertex2f(), GLWidget::h_, GLWFont::instance(), mode_, GLWidget::parent_, parentSized_, text_, GLWidget::w_, GLWidget::x_, and GLWidget::y_.

void GLWTalkBox::simulate ( float  frameTime  )  [virtual]

Reimplemented from GLWidget.

Definition at line 43 of file GLWTalkBox.cpp.

References ctime_, and cursor_.

void GLWTalkBox::keyDown ( char *  buffer,
unsigned int  keyState,
KeyboardHistory::HistoryElement history,
int  hisCount,
bool &  skipRest 
) [virtual]

Reimplemented from GLWidget.

Definition at line 88 of file GLWTalkBox.cpp.

References eSay, eTeamSay, GLWidget::getId(), GLWWindowManager::hideWindow(), ClientChannelManager::instance(), GLWWindowManager::instance(), int(), LANG_STRING, maxTextLen_, mode_, GLWidget::parent_, KeyboardHistory::HistoryElement::representedUnicode, KeyboardHistory::HistoryElement::sdlKey, ClientChannelManager::sendText(), and text_.

void GLWTalkBox::display (  )  [virtual]

Reimplemented from GLWidget.

Definition at line 154 of file GLWTalkBox.cpp.

References defaultMode_, mode_, and text_.

bool GLWTalkBox::initFromXML ( XMLNode node  )  [virtual]

Reimplemented from GLWidget.

Definition at line 160 of file GLWTalkBox.cpp.

References defaultMode_, eSay, eTeamSay, XMLNode::getNamedChild(), GLWidget::initFromXML(), parentSized_, and LangStringUtil::strcmp().

GLWTalkBox::REGISTER_CLASS_HEADER ( GLWTalkBox   ) 


Member Data Documentation

LangString GLWTalkBox::text_ [protected]

Definition at line 50 of file GLWTalkBox.h.

Referenced by display(), draw(), and keyDown().

float GLWTalkBox::ctime_ [protected]

Definition at line 51 of file GLWTalkBox.h.

Referenced by simulate().

bool GLWTalkBox::cursor_ [protected]

Definition at line 52 of file GLWTalkBox.h.

Referenced by draw(), and simulate().

int GLWTalkBox::maxTextLen_ [protected]

Definition at line 53 of file GLWTalkBox.h.

Referenced by keyDown().

bool GLWTalkBox::parentSized_ [protected]

Definition at line 54 of file GLWTalkBox.h.

Referenced by draw(), and initFromXML().

TalkMode GLWTalkBox::mode_ [protected]

Definition at line 55 of file GLWTalkBox.h.

Referenced by display(), draw(), and keyDown().

TalkMode GLWTalkBox::defaultMode_ [protected]

Definition at line 56 of file GLWTalkBox.h.

Referenced by display(), and initFromXML().


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