interface MAGES::ILocomotionActions¶
Overview¶
Interface for generic actions that are triggered from user input and return a value to the user. More…
interface ILocomotionActions
{
// methods
void AddActionOnMove(Action moveAction);
void AddActionOnSnapTurn(Action snapRotate);
void AddActionOnChangeHeight(Action changeHeight);
void AddActionOnSmoothTurn(Action smoothRotate);
};
// direct descendants
class InputController;
Detailed Documentation¶
Interface for generic actions that are triggered from user input and return a value to the user.
Methods¶
void AddActionOnMove(ActionmoveAction)
Adds an action to be called when a move button is held.
Parameters:
moveAction |
The action that will be called with argument the 2D direction. |
void AddActionOnSnapTurn(ActionsnapRotate)
Adds an action to be called when the camera turn button is pressed.
Parameters:
snapRotate |
The action that will be called with argument the direction. |
void AddActionOnChangeHeight(ActionchangeHeight)
Adds an action to be called when a change height button is pressed.
Parameters:
changeHeight |
The action that will be called with argument the direction. |
void AddActionOnSmoothTurn(ActionsmoothRotate)
Adds an action to be called when a rotate button is held.
Parameters:
smoothRotate |
The action that will be called with argument the 2D direction. |