| Package | org.spicefactory.lib.util |
| Class | public class CommandChain |
| Inheritance | CommandChain Command |
| Method | Defined by | ||
|---|---|---|---|
|
Creates a new empty CommandChain.
| CommandChain | ||
|
addCommand(com:Command):void
Adds the specified Command to this CommandChain.
| CommandChain | ||
|
clear():void
Removes all Commands from this CommandChain.
| CommandChain | ||
|
Creates a clone of this CommandChain.
| CommandChain | ||
![]() |
execute():*
Executes the Command.
| Command | |
|
isEmpty():Boolean
Checks whether this CommandChain is empty (does not contain any Commands).
| CommandChain | ||
| CommandChain | () | constructor |
public function CommandChain()Creates a new empty CommandChain.
| addCommand | () | method |
public function addCommand(com:Command):voidAdds the specified Command to this CommandChain.
Parameterscom:Command — the Command to add
|
| clear | () | method |
public function clear():voidRemoves all Commands from this CommandChain.
| clone | () | method |
public function clone():CommandChainCreates a clone of this CommandChain.
ReturnsCommandChain —
a new CommandChain that contains the same Command as this CommandChain
|
| isEmpty | () | method |
public function isEmpty():BooleanChecks whether this CommandChain is empty (does not contain any Commands).
ReturnsBoolean — true if this CommandChain does not contain any Commands
|