Package zombie.scripting
Class ScriptManager
java.lang.Object
zombie.scripting.ScriptManager
- All Implemented Interfaces:
IScriptObjectStore
public class ScriptManager extends java.lang.Object implements IScriptObjectStore
-
Field Summary
Fields Modifier and Type Field Description ScriptModule
CurrentLoadingModule
java.util.HashMap
CustomTriggerLastRan
java.util.HashMap
CustomTriggerMap
java.util.HashMap
HookMap
static ScriptManager
instance
java.util.HashMap
MapMap
java.util.HashMap
ModuleAliases
java.util.HashMap
ModuleMap
java.util.Stack
PlayingScripts
boolean
skipping
java.util.HashMap
TriggerMap
-
Constructor Summary
Constructors Constructor Description ScriptManager()
-
Method Summary
Modifier and Type Method Description void
AddOneTime(java.lang.String event, java.lang.String script)
void
AddRoom(java.lang.String module, java.lang.String name, Room room)
void
AddZone(java.lang.String module, java.lang.String name, Zone zone)
void
CheckExitPoints()
void
FillInventory(IsoGameCharacter chr, ItemContainer container, java.lang.String InventoryScript)
ScriptCharacter
FindCharacter(java.lang.String name)
Item
FindItem(java.lang.String name)
void
FireHook(java.lang.String event)
ScriptActivatable
getActivatable(java.lang.String name)
java.util.Stack
getAllContainerDistributions()
java.util.Stack
getAllEvolvedRecipes()
java.util.ArrayList
getAllFixing()
java.util.Stack
getAllFloorDistributions()
java.util.Stack
getAllRecipes()
java.util.Stack
getAllRecipesFor(java.lang.String result)
java.util.Stack
getAllShelfDistributions()
java.util.Stack
getAllUniqueRecipes()
java.util.Stack
getAllZones()
ScriptCharacter
getCharacter(java.lang.String name)
IsoGameCharacter
getCharacterActual(java.lang.String name)
java.lang.String
getChecksum()
ScriptFlag
getFlag(java.lang.String name)
int
getFlagIntValue(java.lang.String name)
java.lang.String
getFlagValue(java.lang.String name)
Inventory
getInventory(java.lang.String name)
Item
getItem(java.lang.String name)
static java.lang.String
getItemName(java.lang.String name)
java.lang.String
getLanguage(java.lang.String id)
LanguageDefinition
getLanguageDef(java.lang.String name)
ScriptModule
getModule(java.lang.String name)
ScriptModule
getModuleNoDisableCheck(java.lang.String name)
QuestTaskCondition
getQuestCondition(java.lang.String name)
java.lang.String
getRandomMap()
Recipe
getRecipe(java.lang.String name)
Room
getRoom(java.lang.String name)
Script
getScript(java.lang.String name)
ScriptContainer
getScriptContainer(java.lang.String name)
java.util.Stack
getStoryList()
ScriptTalker
getTalker(java.lang.String name)
Waypoint
getWaypoint(java.lang.String name)
Zone
getZone(java.lang.String name)
java.util.Stack
getZones(java.lang.String Zone)
boolean
isDrainableItemType(java.lang.String itemType)
boolean
IsScriptPlaying(java.lang.String check)
boolean
IsScriptPlaying(Script.ScriptInstance check)
void
Load()
void
LoadFile(java.lang.String filename, boolean bLoadJar)
void
LoadFilePP(java.lang.String filename, boolean bLoadJar)
Deprecated.void
LoadStory(java.lang.String story)
void
ParseScript(java.lang.String totalFile)
void
ParseScriptPP(java.lang.String totalFile)
Deprecated.void
PauseScript(java.lang.String name)
void
PlayInstanceScript(java.lang.String idname, java.lang.String script, java.lang.String a, IsoGameCharacter A)
void
PlayInstanceScript(java.lang.String idname, java.lang.String script, java.lang.String a, IsoGameCharacter A, java.lang.String b, IsoGameCharacter B)
void
PlayInstanceScript(java.lang.String idname, java.lang.String script, java.lang.String a, IsoGameCharacter A, java.lang.String b, IsoGameCharacter B, java.lang.String c, IsoGameCharacter C)
Script.ScriptInstance
PlayInstanceScript(java.lang.String idname, java.lang.String script, java.util.HashMap Aliases)
Script.ScriptInstance
PlayInstanceScript(java.lang.String idname, java.lang.String script, java.util.HashMap Aliases, java.util.HashMap Subs)
Script.ScriptInstance
PlayInstanceScript(java.lang.String idname, java.lang.String script, KahluaTable aliases)
Script.ScriptInstance
PlayInstanceScript(java.lang.String idname, java.lang.String script, KahluaTable aliases, KahluaTable subs)
void
PlayScript(java.lang.String script)
Script.ScriptInstance
PlayScript(java.lang.String script, Script.ScriptInstance aliases)
void
Reset()
void
searchFolders(java.io.File base, java.io.File fo, java.util.ArrayList loadList)
void
StopScript(java.lang.String stop)
void
StopScript(Script.ScriptInstance currentinstance)
void
Trigger(java.lang.String type)
void
Trigger(java.lang.String type, java.lang.String param)
void
Trigger(java.lang.String type, java.lang.String param, java.lang.String param2)
void
Trigger(java.lang.String type, java.lang.String param, java.lang.String param2, java.lang.String param3)
void
UnPauseScript(java.lang.String name)
void
update()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
instance
-
TriggerMap
public java.util.HashMap TriggerMap -
CustomTriggerMap
public java.util.HashMap CustomTriggerMap -
CustomTriggerLastRan
public java.util.HashMap CustomTriggerLastRan -
HookMap
public java.util.HashMap HookMap -
ModuleMap
public java.util.HashMap ModuleMap -
PlayingScripts
public java.util.Stack PlayingScripts -
CurrentLoadingModule
-
ModuleAliases
public java.util.HashMap ModuleAliases -
skipping
public boolean skipping -
MapMap
public java.util.HashMap MapMap
-
-
Constructor Details
-
ScriptManager
public ScriptManager()
-
-
Method Details
-
AddOneTime
public void AddOneTime(java.lang.String event, java.lang.String script) -
FireHook
public void FireHook(java.lang.String event) -
ParseScriptPP
@Deprecated public void ParseScriptPP(java.lang.String totalFile)Deprecated. -
ParseScript
public void ParseScript(java.lang.String totalFile) -
StopScript
public void StopScript(java.lang.String stop) -
PlayInstanceScript
public void PlayInstanceScript(java.lang.String idname, java.lang.String script, java.lang.String a, IsoGameCharacter A) -
PlayInstanceScript
public Script.ScriptInstance PlayInstanceScript(java.lang.String idname, java.lang.String script, KahluaTable aliases) -
PlayInstanceScript
public Script.ScriptInstance PlayInstanceScript(java.lang.String idname, java.lang.String script, KahluaTable aliases, KahluaTable subs) -
PlayInstanceScript
public Script.ScriptInstance PlayInstanceScript(java.lang.String idname, java.lang.String script, java.util.HashMap Aliases) -
PlayInstanceScript
public Script.ScriptInstance PlayInstanceScript(java.lang.String idname, java.lang.String script, java.util.HashMap Aliases, java.util.HashMap Subs) -
PlayInstanceScript
public void PlayInstanceScript(java.lang.String idname, java.lang.String script, java.lang.String a, IsoGameCharacter A, java.lang.String b, IsoGameCharacter B) -
PlayInstanceScript
public void PlayInstanceScript(java.lang.String idname, java.lang.String script, java.lang.String a, IsoGameCharacter A, java.lang.String b, IsoGameCharacter B, java.lang.String c, IsoGameCharacter C) -
PlayScript
public void PlayScript(java.lang.String script) -
PlayScript
-
update
public void update() -
LoadFile
public void LoadFile(java.lang.String filename, boolean bLoadJar) throws java.io.FileNotFoundException- Throws:
java.io.FileNotFoundException
-
LoadFilePP
@Deprecated public void LoadFilePP(java.lang.String filename, boolean bLoadJar) throws java.io.FileNotFoundException, java.io.UnsupportedEncodingExceptionDeprecated.- Throws:
java.io.FileNotFoundException
java.io.UnsupportedEncodingException
-
LoadStory
public void LoadStory(java.lang.String story) throws java.io.IOException, java.net.URISyntaxException- Throws:
java.io.IOException
java.net.URISyntaxException
-
getStoryList
public java.util.Stack getStoryList() throws java.io.IOException, java.net.URISyntaxException- Throws:
java.io.IOException
java.net.URISyntaxException
-
searchFolders
public void searchFolders(java.io.File base, java.io.File fo, java.util.ArrayList loadList) -
getItemName
public static java.lang.String getItemName(java.lang.String name) -
FillInventory
public void FillInventory(IsoGameCharacter chr, ItemContainer container, java.lang.String InventoryScript) -
Trigger
public void Trigger(java.lang.String type) -
Trigger
public void Trigger(java.lang.String type, java.lang.String param) -
Trigger
public void Trigger(java.lang.String type, java.lang.String param, java.lang.String param2) -
Trigger
public void Trigger(java.lang.String type, java.lang.String param, java.lang.String param2, java.lang.String param3) -
IsScriptPlaying
public boolean IsScriptPlaying(java.lang.String check) -
IsScriptPlaying
-
PauseScript
public void PauseScript(java.lang.String name) -
UnPauseScript
public void UnPauseScript(java.lang.String name) -
getModule
-
getModuleNoDisableCheck
-
getInventory
- Specified by:
getInventory
in interfaceIScriptObjectStore
-
getCharacter
- Specified by:
getCharacter
in interfaceIScriptObjectStore
-
FindCharacter
-
getCharacterActual
- Specified by:
getCharacterActual
in interfaceIScriptObjectStore
-
getFlagIntValue
public int getFlagIntValue(java.lang.String name) -
getFlagValue
public java.lang.String getFlagValue(java.lang.String name)- Specified by:
getFlagValue
in interfaceIScriptObjectStore
-
getWaypoint
- Specified by:
getWaypoint
in interfaceIScriptObjectStore
-
getScriptContainer
- Specified by:
getScriptContainer
in interfaceIScriptObjectStore
-
getRoom
- Specified by:
getRoom
in interfaceIScriptObjectStore
-
getLanguageDef
-
getLanguage
public java.lang.String getLanguage(java.lang.String id) -
getTalker
-
getActivatable
- Specified by:
getActivatable
in interfaceIScriptObjectStore
-
getFlag
- Specified by:
getFlag
in interfaceIScriptObjectStore
-
getZone
- Specified by:
getZone
in interfaceIScriptObjectStore
-
getQuestCondition
- Specified by:
getQuestCondition
in interfaceIScriptObjectStore
-
getItem
- Specified by:
getItem
in interfaceIScriptObjectStore
-
FindItem
-
isDrainableItemType
public boolean isDrainableItemType(java.lang.String itemType) -
getRecipe
- Specified by:
getRecipe
in interfaceIScriptObjectStore
-
CheckExitPoints
public void CheckExitPoints() -
getScript
- Specified by:
getScript
in interfaceIScriptObjectStore
-
getAllFixing
public java.util.ArrayList getAllFixing() -
getAllRecipes
public java.util.Stack getAllRecipes() -
getAllEvolvedRecipes
public java.util.Stack getAllEvolvedRecipes() -
getAllUniqueRecipes
public java.util.Stack getAllUniqueRecipes() -
getAllZones
public java.util.Stack getAllZones() -
getAllContainerDistributions
public java.util.Stack getAllContainerDistributions() -
getAllShelfDistributions
public java.util.Stack getAllShelfDistributions() -
getAllFloorDistributions
public java.util.Stack getAllFloorDistributions() -
getZones
public java.util.Stack getZones(java.lang.String Zone) -
AddZone
-
AddRoom
-
Reset
public void Reset() -
getChecksum
public java.lang.String getChecksum() -
Load
public void Load() -
getRandomMap
public java.lang.String getRandomMap() -
getAllRecipesFor
public java.util.Stack getAllRecipesFor(java.lang.String result) -
StopScript
-