Main Page | Class Hierarchy | Class List | File List | Class Members | File Members

Console Class Reference

#include <Console.h>

Inherited by OpenGLConsole.

Inheritance diagram for Console:

Inheritance graph
[legend]
List of all members.

Public Member Functions

 Console ()
virtual ~Console ()
void handleKey (unsigned int key)
void handleChar (char ch)
void process ()
void add (const char *str, Vec3 clr=Vec3(1.0f, 1.0f, 1.0f))
void addEx (Vec3 clr, const char *str,...)
virtual void draw (OpenGLFont *font)=0

Protected Member Functions

bool parse (char *str, char **cmd, char **param)

Protected Attributes

String console
unsigned int pos
LinkedList< ConsoleEntryhistory

Detailed Description

Definition at line 31 of file Console.h.


Constructor & Destructor Documentation

Console::Console  ) 
 

Console.cpp

Author: Petter Alstermark, petter@alstermark.com

Definition at line 9 of file Console.cpp.

References LinkedList< TYPE >::clear(), and history.

Here is the call graph for this function:

Console::~Console  )  [virtual]
 

Definition at line 14 of file Console.cpp.


Member Function Documentation

void Console::add const char str,
Vec3  clr = Vec3(1.0f, 1.0f, 1.0f)
 

Definition at line 211 of file Console.cpp.

References LinkedList< TYPE >::addLast(), ConsoleEntry::clr, g_time, LinkedList< TYPE >::getCount(), LinkedList< TYPE >::getFirst(), history, LinkedList< TYPE >::removeNode(), ConsoleEntry::str, and ConsoleEntry::time.

Here is the call graph for this function:

void Console::addEx Vec3  clr,
const char str,
  ...
 

Definition at line 225 of file Console.cpp.

References LinkedList< TYPE >::addLast(), ConsoleEntry::clr, g_time, LinkedList< TYPE >::getCount(), LinkedList< TYPE >::getFirst(), history, LinkedList< TYPE >::removeNode(), ConsoleEntry::str, and ConsoleEntry::time.

Referenced by Menu::handleChar(), Play::load(), Play::networkLoop(), Join::networkLoop(), process(), Scores::update(), and MainApp::update().

Here is the call graph for this function:

virtual void Console::draw OpenGLFont font  )  [pure virtual]
 

Implemented in OpenGLConsole.

void Console::handleChar char  ch  ) 
 

Definition at line 204 of file Console.cpp.

References console, and String::insert().

Referenced by MainApp::handleChar().

Here is the call graph for this function:

void Console::handleKey unsigned int  key  ) 
 

Definition at line 166 of file Console.cpp.

References console, g_console, String::getLength(), process(), and String::remove().

Referenced by MainApp::keyDown().

Here is the call graph for this function:

bool Console::parse char str,
char **  cmd,
char **  param
[protected]
 

Definition at line 18 of file Console.cpp.

Referenced by process().

void Console::process  ) 
 

Definition at line 45 of file Console.cpp.

References addEx(), app, console, g_myPlayerID, g_players, g_showFPS, g_stencilBuffer, Player::getName(), Gne::getPlayerById(), Gne::getPlayerIdSelf(), gne, Application::hWnd, Gne::init(), Gne::isRunning(), Gne::joinServer(), parse(), Gne::sendChatMsg(), Gne::setMaxPlayers(), Gne::setPlayerInfoSelf(), Gne::startServer(), and Gne::updatePlayersFromServer().

Referenced by handleKey().

Here is the call graph for this function:


Member Data Documentation

String Console::console [protected]
 

Definition at line 48 of file Console.h.

Referenced by OpenGLConsole::draw(), handleChar(), handleKey(), and process().

LinkedList<ConsoleEntry> Console::history [protected]
 

Definition at line 50 of file Console.h.

Referenced by add(), addEx(), Console(), and OpenGLConsole::draw().

unsigned int Console::pos [protected]
 

Definition at line 49 of file Console.h.


Generated on Sun Jun 5 15:49:26 2005 for Defacto by  doxygen 1.4.3