Action()

Add and remove potential actions that may be selected

new Action()

Members

static eventBus

the action event bus, for communicating between action Components

Methods

static addAction(name, fn)

Adds a new action that can be performed

Parameters:
Name Type Description
name string

The name of the action

fn function

The function to be performed

static clearActions()

Removes all registered actions. Mostly used for testing.

static getActionList() → {Map}

Returns a list of all registered actions

Returns:
Map -

List of actions that have been registered through Action.addAction