Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members  

HudChat Class Reference

#include <HudChat.h>

Inheritance diagram for HudChat:

[legend]
Collaboration diagram for HudChat:
[legend]
List of all members.

Public Methods

 HudChat ()
virtual ~HudChat ()
virtual void draw ()
void addMessage (string message)
void addChat (unsigned char c)
void clearChat ()
void popChat ()
string getChat ()
void finishChat ()

Protected Attributes

vector< GLfloat * > _coordinatesVec
vector< int > _widthVec
vector< int > _heightVec
int _messageTopPosition
int _messageLeftPosition
string _chatLine
GLuint _chatTexture [1]
bool _hasChat

Detailed Description

Class for chatting and status messages


Constructor & Destructor Documentation

HudChat::HudChat  
 

HudChat::~HudChat   [virtual]
 


Member Function Documentation

void HudChat::addChat unsigned char    c
 

add a single character to the typing line at the bottom of the screen

void HudChat::addMessage string    message
 

add a message

void HudChat::clearChat  
 

clear the chat currently being typed

void HudChat::draw   [virtual]
 

draw

Implements HudBase.

void HudChat::finishChat  
 

push the chat line to the message box

string HudChat::getChat  
 

return the whole chat string

void HudChat::popChat  
 

remove the last letter typed in the chat line


Member Data Documentation

string HudChat::_chatLine [protected]
 

GLuint HudChat::_chatTexture[1] [protected]
 

vector< GLfloat * > HudChat::_coordinatesVec [protected]
 

bool HudChat::_hasChat [protected]
 

vector< int> HudChat::_heightVec [protected]
 

int HudChat::_messageLeftPosition [protected]
 

int HudChat::_messageTopPosition [protected]
 

vector< int > HudChat::_widthVec [protected]
 


The documentation for this class was generated from the following files:
Generated on Wed Apr 21 11:11:10 2004 for naturecalls by doxygen1.2.18