Class AnonCmd

An anonymous command that takes an anonymous function as a parameter corresponding to the command to execute. The goal of this command is to avoid the creation of a command class for a small command.

Hierarchy

Constructors

Properties

exec: (() => void)

Type declaration

    • (): void
    • Returns void

status: CmdStatus

The state of the command.

Methods

  • Actions may need to create a memento before their first execution. This is the goal of the operation that should be overridden. This operator is called a single time before the first execution of the command.

    Returns void

  • This method contains the statements to execute the command. This method is automatically called by 'execute' and must not be called explicitly.

    Returns void

Generated using TypeDoc