LazyBoundAction

Special case of actions which captures the status of the target to implement undo/redo. Action is instantiated before executing any change to the target. status is captured by Action implementation. Later, updateState is called after change is applied to the target. New status is captured by Action implementation then.

interface LazyBoundAction : Action {}

Members

Functions

updateNewState
void updateNewState()

Confirm 'redo' state from the current status of the target.

Inherited Members

From Action

rollback
void rollback()

Roll back the action that was done

redo
void redo()

Redo the action that was done

describe
string describe()

Describes the action

describeUndo
string describeUndo()

Describes the action

getName
string getName()

Gets the name of the action

merge
bool merge(Action other)

Merge action with other action (if possible)

canMerge
bool canMerge(Action other)

Gets whether this action can merge with an other

Meta