An abstract over an action that changes the data model. An action can support undo operation.

Hierarchy (View Summary)

Constructors

Properties

actionName: ACTION_NAME = ACTION_NAME.SET_TURN

Action name must be unique for every action. Once you set a value, do not change it later on.

Methods

  • Abstract: Should be implemented by subclasses with the logics of the action.

    Parameters

    Returns void

  • called immediately after the do action, and keep the description fixed so it wont change later on.

    Parameters

    Returns void

  • Returns string

  • Returns boolean

  • Abstract: Should be implemented by subclasses with the logics of re-do, only if undo is supported.

    Parameters

    Returns void

  • Parameters

    • timestamp: number

    Returns void

  • Abstract: Should be implemented by subclasses with the undo logics of the action, if it is supported.

    Parameters

    Returns void