Skip to main content

ReversableAction

ReversableAction

Describes an action that is reversable for code-reuse. Ex. A Place action and Delete action would be identical except their execute's and undo's would be opposite of eacother. This reconciles that reuse of code and allows for a single class.


Constructor

protected ReversableAction

new ReversableAction(flip)

*Description needed*

Parameters

  •  flip: false | trueDescription needed

Properties

No publicly accessible properties on ReversableAction

private flipped: false | true

Description needed


Methods

protected normalExecute

normalExecute() => Action

Description needed

Returns

  •   ActionDescription needed

protected normalUndo

normalUndo() => Action

Description needed

Returns

  •   ActionDescription needed

public execute

execute() => Action

Description needed

Returns

  •   ActionDescription needed

public undo

undo() => Action

Description needed

Returns

  •   ActionDescription needed

public getName

getName() => string

Description needed

Returns

  •   stringDescription needed

Static Methods

No static methods for ReversableAction