|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectscripting.BeanShell
public class BeanShell
This class provides an interface to use beanshell scripts in the game
| Constructor Summary | |
|---|---|
BeanShell()
Creates a new beanshell interpreter object |
|
| Method Summary | |
|---|---|
void |
addGameLocation(GameLocation g)
Adds a game location to the beanshell script interpreter |
static void |
executeScript(java.lang.String scriptFile)
Executes the specified beanshell script file line by line |
void |
initGameLocations()
Intialize the beanshell interpreter with the game locations that have been added to the interpreter before |
static void |
invoke(java.lang.String methodName)
Invoke a method from the beanshell script of the current game location |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BeanShell()
| Method Detail |
|---|
public void addGameLocation(GameLocation g)
g - game location to add to the beanshell interpreterpublic void initGameLocations()
public static void invoke(java.lang.String methodName)
methodName - method name in the .bsh script filepublic static void executeScript(java.lang.String scriptFile)
scriptFile - bsh script file to execute
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||