|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjurpe.system.CommandSequence
public class CommandSequence
Implements a sequence of commands to be executed.
Command
Constructor Summary | |
---|---|
CommandSequence()
Build new command sequence |
Method Summary | |
---|---|
void |
add(ICommand command)
Add a command to be executed in sequence. |
boolean |
execute()
Executes a command sequence. |
java.lang.String |
getLog()
Returns log of every command executed in this sequence. |
java.util.AbstractList<java.lang.String> |
getLogItems()
Returns the log as a List of Strings |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CommandSequence()
Method Detail |
---|
public void add(ICommand command)
command
- command to add to the sequencepublic boolean execute()
execute
in interface ICommand
public java.lang.String getLog()
getLog
in interface ICommand
public java.util.AbstractList<java.lang.String> getLogItems()
|
Jurpe - Java Universal Role Playing Engine - http://jurpe.sourceforge.net | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |