20 package net.sf.gridarta.plugin;
23 import bsh.Interpreter;
27 import org.jetbrains.annotations.NotNull;
68 interpreter.set(
"scriptThread",
this);
69 interpreter.eval(plugin.
getCode());
71 }
catch (
final EvalError e) {
72 e.printStackTrace(interpreter.getErr());
final Interpreter interpreter
The Interpreter of this BshThread.
boolean isSuccess()
Returns whether the plugin has been executed successfully.
final Plugin< G, A, R > plugin
The PluginModel of this BshThread.
Base package of all Gridarta classes.
Reflects a game object (object on a map).
GameObjects are the objects based on Archetypes found on maps.
String getCode()
Returns the executable code of this plugin.
boolean success
Whether the plugin has been executed successfully.
BshThread(@NotNull final String name, @NotNull final Plugin< G, A, R > plugin, @NotNull final Interpreter interpreter)
Creates a new instance.
Interface for MapArchObjects.