|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--net.sourceforge.worldsaver.rp.ActionParticle
The ActionTree needed by Action classes consists of several of these ActionParticles.
| Fields inherited from interface net.sourceforge.worldsaver.util.MiscUtils |
CONSOLE_WIDTH, NEWLINE, RANDOM |
| Constructor Summary | |
ActionParticle(java.util.HashMap loaded)
Reconstructs an AP from a loaded String. |
|
ActionParticle(java.lang.String msg,
java.lang.String txt,
IDGenerator gen)
Creates a new ActionParticle with the given decision message and the given text. |
|
| Method Summary | |
void |
addSubParticle(ActionParticle val)
Adds another particle to this action tree (at this level). |
java.lang.String |
getDecisionMessage()
Returns the decision message. |
java.lang.String[] |
getDecisionMessages()
Returns the decision messages of all following ActionParticles. |
long |
getID()
Returns the object ID. |
void |
getReferencesRight(java.util.HashMap pool,
IDGenerator gen)
Gets the references right after loading. |
java.lang.String |
getSaveableString()
Returns the saveable String. |
protected java.util.HashSet |
getSubParticles()
Returns the sub-particles of this particle. |
java.lang.String |
getText()
Returns the text describing the situation. |
boolean |
isEndOfTree()
Returns whether there is a deeper level of the action tree or not. |
void |
setDecisionMessage(java.lang.String val)
Sets the decision message. |
void |
setText(java.lang.String val)
Sets the text explaining the situation. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public ActionParticle(java.lang.String msg,
java.lang.String txt,
IDGenerator gen)
msg - the decision messagetxt - the situation-describing textgen - the ID generatorpublic ActionParticle(java.util.HashMap loaded)
loaded - the HashMap with the loaded valuesgen - the already initialized IDGeneratorRpBase.RpBase(net.sourceforge.worldsaver.rp.RpBase, java.lang.String),
Loader| Method Detail |
public void getReferencesRight(java.util.HashMap pool,
IDGenerator gen)
getReferencesRight in interface Saveablepool - contains all objects of the current sessionRpBase.getReferencesRight(java.util.HashMap, net.sourceforge.worldsaver.util.IDGenerator),
Saveableprotected java.util.HashSet getSubParticles()
public long getID()
public java.lang.String getSaveableString()
throws java.io.IOException
getSaveableString in interface Saveablejava.io.IOException - if the objects are not validSaveablepublic boolean isEndOfTree()
public void addSubParticle(ActionParticle val)
val - the new particlepublic void setDecisionMessage(java.lang.String val)
val - the messagepublic void setText(java.lang.String val)
val - the textpublic java.lang.String getDecisionMessage()
public java.lang.String[] getDecisionMessages()
public java.lang.String getText()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||