|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--jAsea.jAseaLibrary
Holds the information for a single command in the standard library
Field Summary | |
(package private) jAseaParser |
command
And the parse tree which recognizes that command |
(package private) java.lang.String |
command_string
Command which triggers the library command |
Constructor Summary | |
(package private) |
jAseaLibrary(java.lang.String s)
Constructor |
Method Summary | |
(package private) boolean |
closeObject(jAseaRun jar)
Library Function: Attempts to close the object referred to be ref_text |
(package private) boolean |
dropObject(jAseaRun jar)
Library Function: Attempts to drop the object referred to be ref_text |
(package private) boolean |
Execute(java.lang.String s,
jAseaRun jar)
Superclass function - must be overridden |
(package private) static jAseaLibrary[] |
getCommands(jAseaRun jar)
Returns a list of all standard library commands. |
(package private) boolean |
getObject(jAseaRun jar)
Library Function: Attempts to take the object referred to be ref_text |
(package private) boolean |
go(jAseaRun jar,
int dir)
Library Function: Attempts to go in direction 'dir' |
(package private) boolean |
inventory(jAseaRun jar)
Library command to take inventory |
(package private) static java.util.Vector |
matchObject(jAseaRun jar)
Returns a vector of all objects whose name matches the value of jar.state.ref_text |
(package private) boolean |
NotYet(jAseaRun jar)
Prints that a direction is impossible & returns true Called if a direction is impossible because of a condition |
(package private) boolean |
openObject(jAseaRun jar)
Library Function: Attempts to open the object referred to be ref_text |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
java.lang.String command_string
jAseaParser command
Constructor Detail |
jAseaLibrary(java.lang.String s)
s
- command that triggers this functionMethod Detail |
boolean Execute(java.lang.String s, jAseaRun jar)
boolean inventory(jAseaRun jar)
static java.util.Vector matchObject(jAseaRun jar)
boolean getObject(jAseaRun jar)
boolean dropObject(jAseaRun jar)
boolean openObject(jAseaRun jar)
boolean closeObject(jAseaRun jar)
boolean NotYet(jAseaRun jar)
boolean go(jAseaRun jar, int dir)
static jAseaLibrary[] getCommands(jAseaRun jar)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |