Odyssey::AndInputCombo Class Reference

This combo embodies an "and" condition between input events. More...

#include <InputCombo.h>

Inheritance diagram for Odyssey::AndInputCombo:

Odyssey::InputCombo List of all members.

Public Member Functions

 AndInputCombo ()
void addActionWindow (const String &openAction, const String &closeAction)
 Adds a new input event window to this combo.
void removeActionWindow (size_t index)
 Removes the indexed window from the combo.
void clearActionWindows ()
 Removes all the action windows from this combo.
void onEvent (const String &action)
 The callback for this combo's action mapping.

Classes

class  InputWindow

Detailed Description

This combo embodies an "and" condition between input events.

This class is a combo controller that is triggered during an "and" condition between actions. That is, actions are defined by windows of opening and closing input events, and if all specified windows are opened, the combo is triggered.


Constructor & Destructor Documentation

Odyssey::AndInputCombo::AndInputCombo  ) 
 


Member Function Documentation

void Odyssey::AndInputCombo::addActionWindow const String openAction,
const String closeAction
 

Adds a new input event window to this combo.

void Odyssey::AndInputCombo::clearActionWindows  ) 
 

Removes all the action windows from this combo.

void Odyssey::AndInputCombo::onEvent const String action  )  [virtual]
 

The callback for this combo's action mapping.

This is the callable target that get notified when an action from this combo's action map is invoked. It is in this overrideable that the logic for combo invocation is made. If the combo should be invoked, onCombo needs to be called.

Parameters:
action the name of the action invoked
See also:
onCombo

Reimplemented from Odyssey::InputCombo.

void Odyssey::AndInputCombo::removeActionWindow size_t  index  ) 
 

Removes the indexed window from the combo.


The documentation for this class was generated from the following file:
Generated on Sun Jan 7 01:18:52 2007 for Odyssey Meta-Engine by  doxygen 1.4.6-NO