|
CeresEngine 0.2.0
A game development framework
|
#include <CeresEngine/Entity/ActionHandler.hpp>
Public Types | |
| using | Action = A |
| The action type handled by the handler. | |
| using | ReturnType = typename A::ReturnType |
| The return type required by the action type. | |
Public Member Functions | |
| virtual bool | canAct (const Entity &entity, const A &action) noexcept |
| Checks if the given handler can act on the given action. | |
| virtual ReturnType | act (Entity &entity, const A &action)=0 |
| Runs an action. | |
Public Member Functions inherited from CeresEngine::AbstractActionHandler | |
| virtual | ~AbstractActionHandler ()=default |
Destroys the AbstractActionHandler. | |
The action type handled by the handler.
| using CeresEngine::EntityActionHandler< A >::ReturnType = typename A::ReturnType |
The return type required by the action type.
|
pure virtual |
Runs an action.
| entity | The entity to be acted upon |
| action | The action to be ran |
Implemented in CeresEngine::NetworkActionHandler< A >.
|
inlinevirtualnoexcept |
Checks if the given handler can act on the given action.
| entity | The entity to be acted upon |
| action | The action to be ran |