Logo Search packages:      
Sourcecode: fillets-ng version File versions

LevelInput Class Reference

#include <LevelInput.h>

Inheritance diagram for LevelInput:

GameInput StateInput InputHandler InputProvider NoCopy

List of all members.


Detailed Description

Handle input for level.

Definition at line 13 of file LevelInput.h.


Public Member Functions

virtual V2 getMouseLoc () const
virtual bool isLeftPressed () const
virtual bool isMiddlePressed () const
virtual bool isPressed (SDLKey key) const
virtual bool isRightPressed () const
virtual void keyEvent (const KeyStroke &stroke)
 LevelInput (Level *level)
virtual void mouseEvent (const MouseStroke &buttons)
void mouseState (const V2 &loc, Uint8 buttons)
void takePressed (Uint8 *pressed)
virtual std::string toString () const

Protected Member Functions

virtual void enableConsole ()
virtual void enableHelp ()
virtual void enableMenu ()
virtual void enableSubtitles ()
virtual void quitState ()
virtual void specKey (int keyIndex)
virtual void specStroke (const KeyStroke &stroke)
void toggleParam (const std::string &param)

Protected Attributes

Keymapm_keymap
GameStatem_state

Static Protected Attributes

static const int KEY_CONSOLE = 2
static const int KEY_HELP = 3
static const int KEY_MENU = 4
static const int KEY_QUIT = 1
static const int KEY_SUBTITLES = 5

Private Member Functions

LevelgetLevel ()

Static Private Attributes

static const int KEY_LOAD = 103
static const int KEY_RESTART = 104
static const int KEY_SAVE = 102
static const int KEY_SHOW_STEPS = 105
static const int KEY_SWITCH = 101

The documentation for this class was generated from the following files:

Generated by  Doxygen 1.6.0   Back to index