Definition ActionHandler.hpp:17
virtual ~AbstractActionHandler()=default
Destroys the AbstractActionHandler.
Definition ActionHandler.hpp:23
virtual bool canAct(const Entity &entity, const A &action) noexcept
Checks if the given handler can act on the given action.
Definition ActionHandler.hpp:35
typename A::ReturnType ReturnType
The return type required by the action type.
Definition ActionHandler.hpp:29
A Action
The action type handled by the handler.
Definition ActionHandler.hpp:26
virtual ReturnType act(Entity &entity, const A &action)=0
Runs an action.
The base entity class.
Definition Entity.hpp:41
Definition Application.hpp:19
constexpr size_t hash(const T &v)
Generates a hash for the provided type.
Definition Hash.hpp:25