|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectcom.huguesjohnson.tiamat.GameScript
public class GameScript
GameScript - runs the script for the game, processes events
| Constructor Summary | |
|---|---|
GameScript()
|
|
| Method Summary | |
|---|---|
void |
add(Event event,
java.lang.String[] conditions,
Event[] returnEvents)
Add an event to the table. |
java.util.Hashtable<ScriptTableKey,ScriptTableValue> |
getScriptTable()
|
void |
onDeserialize(Formatter formatter,
java.lang.String absoluteDir)
The onDeserialize event should be fired after an object is de-serialized. |
Event[] |
processEvent(Event event)
Process an Event triggered by the player. |
Event[] |
processEvent(Event event,
java.lang.String[] conditions)
Process an Event triggered by the player. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public GameScript()
| Method Detail |
|---|
public java.util.Hashtable<ScriptTableKey,ScriptTableValue> getScriptTable()
public Event[] processEvent(Event event)
event - The Event triggered by the player.
public Event[] processEvent(Event event,
java.lang.String[] conditions)
event - The Event triggered by the player.conditions - A list of things that have happened in the game.
public void add(Event event,
java.lang.String[] conditions,
Event[] returnEvents)
event - The event triggering an action.conditions - Conditions from the game state.returnEvents - An array of events returned from this initial event.
public void onDeserialize(Formatter formatter,
java.lang.String absoluteDir)
onDeserialize in interface Storableformatter - the formatter to use to load any storable membersabsoluteDir - the working directory since all paths stored in the object should be relative
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||