InputAcceptor Class Reference

#include <inputacceptor.h>

Inherited by Console, Messages, and StatsWindow.

Inheritance diagram for InputAcceptor:

Inheritance graph
[legend]
List of all members.

Public Member Functions

 InputAcceptor ()
virtual ~InputAcceptor ()
virtual bool keyDown (const SDL_keysym &keysym)
int getNice ()
virtual bool wantKey (const SDL_keysym &keysym)

Protected Attributes

int mPriority

Detailed Description

Basic class for all clases that want any input. Like console, stats window,.. Also some mouse handling may apear here

Definition at line 14 of file inputacceptor.h.


Constructor & Destructor Documentation

InputAcceptor::InputAcceptor  )  [inline]
 

Definition at line 17 of file inputacceptor.h.

References mPriority.

virtual InputAcceptor::~InputAcceptor  )  [inline, virtual]
 

Definition at line 19 of file inputacceptor.h.


Member Function Documentation

int InputAcceptor::getNice  )  [inline]
 

Definition at line 29 of file inputacceptor.h.

References mPriority.

Referenced by InputManager::addInputAcceptor(), and InputManager::removeInputAcceptor().

virtual bool InputAcceptor::keyDown const SDL_keysym &  keysym  )  [inline, virtual]
 

Inform acceptor that key was down.

Returns:
true if the key was accepted

Reimplemented in Console, and Messages.

Definition at line 26 of file inputacceptor.h.

Referenced by InputManager::keyDown(), and InputManager::processKeys().

virtual bool InputAcceptor::wantKey const SDL_keysym &  keysym  )  [inline, virtual]
 

Reimplemented in Console, and Messages.

Definition at line 33 of file inputacceptor.h.


Member Data Documentation

int InputAcceptor::mPriority [protected]
 

Definition at line 38 of file inputacceptor.h.

Referenced by Console::Console(), getNice(), InputAcceptor(), Messages::Messages(), and StatsWindow::StatsWindow().


The documentation for this class was generated from the following file:
Generated on Wed Apr 12 14:17:33 2006 for bjs by  doxygen 1.4.5