|
HoverRace
2.0
|
Actions are effectively signals that can be triggered by both the InputEventController and other things such as UI buttons. More...
#include <Action.h>
Inheritance diagram for HoverRace::Control::Action< T, Val >:Public Member Functions | |
| Action () | |
| Action (const std::string &name, int listOrder) | |
| virtual | ~Action () |
| template<class U > | |
| boost::signals2::connection | Connect (U &&del) |
| Connect a slot to the signal. More... | |
| int | GetPrimaryTrigger () const |
| Retrieve the hash of the key or button assigned to this action by the InputEventController. More... | |
| T & | GetSignal () |
| virtual void | operator() (Val value) |
| void | SetPrimaryTrigger (int hash) |
| Set the hash of the key or button assigned to this action. More... | |
Public Member Functions inherited from HoverRace::Control::ControlAction< Val > | |
| ControlAction () | |
| ControlAction (const std::string &name, int listOrder) | |
| virtual | ~ControlAction () |
| int | GetListOrder () const noexcept |
| const std::string & | GetName () const noexcept |
Private Types | |
| using | SUPER = ControlAction< Val > |
Private Attributes | |
| int | primaryTrigger |
| T | signal |
Additional Inherited Members | |
Protected Attributes inherited from HoverRace::Control::ControlAction< Val > | |
| int | listOrder |
| std::string | name |
Actions are effectively signals that can be triggered by both the InputEventController and other things such as UI buttons.
Actions also keep track of what key/button is assigned to it for UI components to display to the user.
| T | The signal type. |
| Val | The type of the value passed to the signal. |
|
private |
|
inline |
|
inline |
|
inlinevirtual |
|
inline |
Connect a slot to the signal.
This is a convenience function. To access the signal directly, see GetSignal().
|
inline |
Retrieve the hash of the key or button assigned to this action by the InputEventController.
|
inline |
|
inlinevirtual |
Implements HoverRace::Control::ControlAction< Val >.
|
inline |
Set the hash of the key or button assigned to this action.
This should only be called by the InputEventController that owns this Action (if any).
| hash | The input hash or 0 if none is assigned. |
|
private |
|
private |
1.8.11