Game of Ur 0.3.3
This is a computer adaptation of Game of Ur, written in C++ mainly using SDL and OpenGL.
Loading...
Searching...
No Matches
ToyMaker::IActionHandler Class Reference

Class interface for systems that wish to be notified when action events occur in an action context. More...

#include <input_system.hpp>

Inheritance diagram for ToyMaker::IActionHandler:
ToyMaker::BaseSimObjectAspect ToyMaker::SimObjectAspect< BoardLocations > ToyMaker::SimObjectAspect< PlayerCPURandom > ToyMaker::SimObjectAspect< PlayerLocal > ToyMaker::SimObjectAspect< QueryClick > ToyMaker::SimObjectAspect< RenderDebugViewer > ToyMaker::SimObjectAspect< UIButton > ToyMaker::SimObjectAspect< UIImage > ToyMaker::SimObjectAspect< UIPanel > ToyMaker::SimObjectAspect< UIText > ToyMaker::SimObjectAspect< UrController > ToyMaker::SimObjectAspect< UrLookAtBoard > ToyMaker::SimObjectAspect< UrRecords > ToyMaker::SimObjectAspect< UrSceneManager > ToyMaker::SimObjectAspect< UrSceneView > ToyMaker::SimObjectAspect< UrUINavigation > ToyMaker::SimObjectAspect< UrUIRecordsBrowser > ToyMaker::SimObjectAspect< UrUITutorialsBrowser > ToyMaker::SimObjectAspect< UrUIVersion > ToyMaker::SimObjectAspect< UrUIView > ToyMaker::SimObjectAspect< TSimObjectAspectDerived >

Private Member Functions

virtual bool handleAction (const ActionData &actionData, const ActionDefinition &actionDefinition)
 The action handling function in any class that implements this interface.
 

Friends

class ActionDispatch
 

Detailed Description

Class interface for systems that wish to be notified when action events occur in an action context.

Usage

// ... other base classes ...,
public IActionHandler // NOTE: Derive this class
{
// NOTE: Override handleAction
bool handleAction(const ActionData& actionData, const ActionDefinition& actionDefinition) override;
//... Rest of class definition
};
The base class for all aspects, providing an interface to its attached SimObject, and consequently,...
Definition sim_system.hpp:499
Class interface for systems that wish to be notified when action events occur in an action context.
Definition input_system.hpp:301
virtual bool handleAction(const ActionData &actionData, const ActionDefinition &actionDefinition)
The action handling function in any class that implements this interface.
Definition input_system.hpp:311
The definition of a single action, including whether it represents state or change,...
Definition input_data.hpp:511
A union that may contain any one of SimpleActionData, OneAxisActionData, TwoAxisActionData,...
Definition input_data.hpp:721

Member Function Documentation

◆ handleAction()

virtual bool ToyMaker::IActionHandler::handleAction ( const ActionData & actionData,
const ActionDefinition & actionDefinition )
inlineprivatevirtual

The action handling function in any class that implements this interface.

Returns
bool Indicates whether the input that triggered was handled by this handler.

Reimplemented in ToyMaker::BaseSimObjectAspect.


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