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(Action moveAction)

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(Action snapRotate)

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(Action changeHeight)

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(Action smoothRotate)

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.