Main Page | Class Hierarchy | Alphabetical List | Data Structures | Directories | File List | Data Fields | Globals

DemoInput Class Reference

Inheritance diagram for DemoInput:

Inheritance graph
Collaboration diagram for DemoInput:

Collaboration graph

Detailed Description

Handle input for demo.

Definition at line 11 of file DemoInput.h.

Public Member Functions

 DemoInput (GameState *demo)
 Create demo input handler.
virtual void mouseEvent (const MouseStroke &buttons)

Protected Member Functions

virtual void enableHelp ()
 Push help screen at top.

Constructor & Destructor Documentation

DemoInput::DemoInput GameState demo  ) 

Create demo input handler.

Escape, space or mouse click quit state.

demo pointer to the leader

Definition at line 21 of file DemoInput.cpp.

00022     : GameInput(demo)
00023 {
00024     KeyDesc key_quit(KEY_QUIT, "quit");
00025     m_keymap->registerKey(KeyStroke(SDLK_SPACE, KMOD_NONE), key_quit);
00026 }

Member Function Documentation

virtual void DemoInput::enableHelp  )  [inline, protected, virtual]

Push help screen at top.

Reimplemented from GameInput.

Definition at line 13 of file DemoInput.h.

00013 {}

void DemoInput::mouseEvent const MouseStroke buttons  )  [virtual]

Reimplemented from InputHandler.

Definition at line 29 of file DemoInput.cpp.

00030 {
00031     quitState();
00032 }

The documentation for this class was generated from the following files:
Generated on Wed Jun 1 09:54:49 2005 for Fish Fillets - Next Generation by  doxygen 1.4.2