jAsea
Class jAseaLibrary

java.lang.Object
  |
  +--jAsea.jAseaLibrary

class jAseaLibrary
extends java.lang.Object

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

command_string

java.lang.String command_string
Command which triggers the library command


command

jAseaParser command
And the parse tree which recognizes that command

Constructor Detail

jAseaLibrary

jAseaLibrary(java.lang.String s)
Constructor

Parameters:
s - command that triggers this function
Method Detail

Execute

boolean Execute(java.lang.String s,
                jAseaRun jar)
Superclass function - must be overridden


inventory

boolean inventory(jAseaRun jar)
Library command to take inventory


matchObject

static java.util.Vector matchObject(jAseaRun jar)
Returns a vector of all objects whose name matches the value of jar.state.ref_text


getObject

boolean getObject(jAseaRun jar)
Library Function: Attempts to take the object referred to be ref_text


dropObject

boolean dropObject(jAseaRun jar)
Library Function: Attempts to drop the object referred to be ref_text


openObject

boolean openObject(jAseaRun jar)
Library Function: Attempts to open the object referred to be ref_text


closeObject

boolean closeObject(jAseaRun jar)
Library Function: Attempts to close the object referred to be ref_text


NotYet

boolean NotYet(jAseaRun jar)
Prints that a direction is impossible & returns true Called if a direction is impossible because of a condition


go

boolean go(jAseaRun jar,
           int dir)
Library Function: Attempts to go in direction 'dir'


getCommands

static jAseaLibrary[] getCommands(jAseaRun jar)
Returns a list of all standard library commands. Value depends on whether the game has an 8 bit compass or not.