Package org.rspeer.game.script
Class Script
- java.lang.Object
-
- org.rspeer.game.script.Script
-
- Direct Known Subclasses:
GameSituationScript
,TaskScript
public abstract class Script extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Script.State
-
Field Summary
Fields Modifier and Type Field Description protected com.google.inject.Injector
injector
protected ScriptPaint
paint
-
Constructor Summary
Constructors Constructor Description Script()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description boolean
canBreak()
protected com.google.inject.Injector
createInjector()
GameAccount
getAccount()
static java.nio.file.Path
getDataDirectory()
ScriptExecutionType
getExecutionType()
ScriptMeta
getMeta()
Script.State
getState()
boolean
isInterruptable()
boolean
isPassiveForceEnabled(ScriptMeta meta)
abstract int
loop()
void
onFinish()
void
onStart(com.google.gson.JsonElement args)
void
processArgs(java.lang.String args)
void
setAccount(GameAccount account)
void
setState(Script.State state)
void
setState(Script.State state, java.lang.String args)
-
-
-
Field Detail
-
injector
protected final com.google.inject.Injector injector
-
paint
protected ScriptPaint paint
-
-
Method Detail
-
getDataDirectory
public static java.nio.file.Path getDataDirectory()
-
createInjector
protected com.google.inject.Injector createInjector()
-
loop
public abstract int loop()
-
isInterruptable
public boolean isInterruptable()
-
canBreak
public boolean canBreak()
-
isPassiveForceEnabled
public boolean isPassiveForceEnabled(ScriptMeta meta)
-
onStart
public void onStart(com.google.gson.JsonElement args)
-
processArgs
public void processArgs(java.lang.String args)
-
onFinish
public void onFinish()
-
getState
public Script.State getState()
-
setState
public final void setState(Script.State state)
-
setState
public final void setState(Script.State state, java.lang.String args)
-
getMeta
public final ScriptMeta getMeta()
-
getExecutionType
public final ScriptExecutionType getExecutionType()
-
getAccount
public GameAccount getAccount()
-
setAccount
public void setAccount(GameAccount account)
-
-