|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--VASSAL.build.AbstractBuildable
|
+--VASSAL.build.module.EventLog
| Nested Class Summary | |
static class |
EventLog.Event
|
static class |
EventLog.StoreEvents
|
| Field Summary | |
static java.lang.String |
EVENT_LIST
|
| Fields inherited from class VASSAL.build.AbstractBuildable |
buildComponents |
| Constructor Summary | |
EventLog()
|
|
| Method Summary | |
void |
addTo(Buildable b)
Adds this component to its parent. |
void |
clearSaved()
|
Command |
decode(java.lang.String s)
Translate a String into a Command |
static java.util.Enumeration |
decodeEvents(java.lang.String s)
|
java.lang.String |
encode(Command c)
Translate a Command into a String |
static java.lang.String |
encodeEvents(java.util.Enumeration e)
|
java.lang.String[] |
getAttributeNames()
|
java.lang.String |
getAttributeValueString(java.lang.String name)
Return a String representation of the attribute with the given name. |
Command |
getRestoreCommand()
When saving a game, each GameComponent should return a Command that, when executed, restores the GameComponent to its
state when the game was saved
If this component has no persistent state, return null |
void |
log(EventLog.Event e)
|
void |
setAttribute(java.lang.String name,
java.lang.Object value)
Sets an attribute value for this component. |
void |
setup(boolean starting)
Notify the GameComponent that a game has started/ended |
void |
store(EventLog.Event e)
|
| Methods inherited from class VASSAL.build.AbstractBuildable |
add, build, getBuildComponents, getBuildElement, getComponents |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final java.lang.String EVENT_LIST
| Constructor Detail |
public EventLog()
| Method Detail |
public void addTo(Buildable b)
Buildable
addTo in interface Buildablepublic void clearSaved()
public void store(EventLog.Event e)
public void log(EventLog.Event e)
public Command decode(java.lang.String s)
CommandEncoderCommand
decode in interface CommandEncoderpublic java.lang.String encode(Command c)
CommandEncoderCommand into a String
encode in interface CommandEncoderpublic void setup(boolean starting)
GameComponent
setup in interface GameComponentstarting - if true, a game is starting. If false, then a game is endingpublic Command getRestoreCommand()
GameComponentCommand that, when executed, restores the GameComponent to its
state when the game was saved
If this component has no persistent state, return null
getRestoreCommand in interface GameComponentpublic static java.util.Enumeration decodeEvents(java.lang.String s)
public static java.lang.String encodeEvents(java.util.Enumeration e)
public java.lang.String[] getAttributeNames()
getAttributeNames in class AbstractBuildable
public void setAttribute(java.lang.String name,
java.lang.Object value)
AbstractBuildablekey
parameter will be one of those listed in AbstractBuildable.getAttributeNames().
If the value parameter is a String, it will be the
value returned by AbstractBuildable.getAttributeValueString(java.lang.String) for the same
key. If the implementing class extends
AbstractConfigurable, then value will be
an instance of the corresponding Class listed in
AbstractConfigurable.getAttributeTypes()
setAttribute in class AbstractBuildablename - the name of the attribute. Will be one of those
listed in AbstractBuildable.getAttributeNames()public java.lang.String getAttributeValueString(java.lang.String name)
AbstractBuildableAbstractBuildable.setAttribute(java.lang.String, java.lang.Object).
getAttributeValueString in class AbstractBuildablename - the name of the attribute. Will be one of those
listed in AbstractBuildable.getAttributeNames()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||