ToyMaker Game Engine 0.0.2
ToyMaker is a game engine developed and maintained by Zoheb Shujauddin.
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< QueryClick > ToyMaker::SimObjectAspect< RenderDebugViewer > ToyMaker::SimObjectAspect< UIButton > ToyMaker::SimObjectAspect< UIImage > ToyMaker::SimObjectAspect< UIPanel > ToyMaker::SimObjectAspect< UIText > ToyMaker::SimObjectAspect< TSimObjectAspectDerived > ToyMaker::QueryClick ToyMaker::RenderDebugViewer ToyMaker::UIButton ToyMaker::UIImage ToyMaker::UIPanel ToyMaker::UIText

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: