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
FullTypeToItemMap
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 string, java.lang.String string2)
void
AddRoom(java.lang.String string, java.lang.String string2, Room room)
void
AddZone(java.lang.String string, java.lang.String string2, Zone zone)
void
CheckExitPoints()
void
FillInventory(IsoGameCharacter gameCharacter, ItemContainer itemContainer, java.lang.String string)
ScriptCharacter
FindCharacter(java.lang.String string)
Item
FindItem(java.lang.String string)
void
FireHook(java.lang.String string)
ScriptActivatable
getActivatable(java.lang.String string)
java.util.Stack
getAllContainerDistributions()
java.util.Stack
getAllEvolvedRecipes()
java.util.ArrayList
getAllFixing()
java.util.Stack
getAllFloorDistributions()
java.util.ArrayList
getAllGameSounds()
java.util.ArrayList
getAllItems()
java.util.Stack
getAllRecipes()
java.util.Stack
getAllRecipesFor(java.lang.String string)
java.util.Stack
getAllShelfDistributions()
java.util.Stack
getAllUniqueRecipes()
java.util.ArrayList
getAllVehicleScripts()
java.util.Stack
getAllZones()
ScriptCharacter
getCharacter(java.lang.String string)
IsoGameCharacter
getCharacterActual(java.lang.String string)
java.lang.String
getChecksum()
ScriptFlag
getFlag(java.lang.String string)
int
getFlagIntValue(java.lang.String string)
java.lang.String
getFlagValue(java.lang.String string)
Inventory
getInventory(java.lang.String string)
Item
getItem(java.lang.String string)
static java.lang.String
getItemName(java.lang.String string)
java.lang.String
getLanguage(java.lang.String string)
LanguageDefinition
getLanguageDef(java.lang.String string)
ScriptModule
getModule(java.lang.String string)
ScriptModule
getModuleNoDisableCheck(java.lang.String string)
QuestTaskCondition
getQuestCondition(java.lang.String string)
java.lang.String
getRandomMap()
Recipe
getRecipe(java.lang.String string)
Room
getRoom(java.lang.String string)
Script
getScript(java.lang.String string)
ScriptContainer
getScriptContainer(java.lang.String string)
java.util.Stack
getStoryList()
ScriptTalker
getTalker(java.lang.String string)
VehicleScript
getVehicle(java.lang.String string)
VehicleTemplate
getVehicleTemplate(java.lang.String string)
Waypoint
getWaypoint(java.lang.String string)
Zone
getZone(java.lang.String string)
java.util.Stack
getZones(java.lang.String string)
boolean
isDrainableItemType(java.lang.String string)
boolean
IsScriptPlaying(java.lang.String string)
boolean
IsScriptPlaying(Script.ScriptInstance scriptInstance)
void
Load()
void
LoadFile(java.lang.String string, boolean boolean1)
void
LoadFilePP(java.lang.String string, boolean boolean1)
Deprecated.void
LoadStory(java.lang.String string)
void
ParseScript(java.lang.String string)
void
ParseScriptPP(java.lang.String string)
Deprecated.void
PauseScript(java.lang.String string)
void
PlayInstanceScript(java.lang.String string, java.lang.String string2, java.lang.String string3, IsoGameCharacter gameCharacter)
void
PlayInstanceScript(java.lang.String string, java.lang.String string2, java.lang.String string3, IsoGameCharacter gameCharacter, java.lang.String string4, IsoGameCharacter gameCharacter2)
void
PlayInstanceScript(java.lang.String string, java.lang.String string2, java.lang.String string3, IsoGameCharacter gameCharacter, java.lang.String string4, IsoGameCharacter gameCharacter2, java.lang.String string5, IsoGameCharacter gameCharacter3)
Script.ScriptInstance
PlayInstanceScript(java.lang.String string, java.lang.String string2, java.util.HashMap hashMap)
Script.ScriptInstance
PlayInstanceScript(java.lang.String string, java.lang.String string2, java.util.HashMap hashMap, java.util.HashMap hashMap2)
Script.ScriptInstance
PlayInstanceScript(java.lang.String string, java.lang.String string2, KahluaTable kahluaTable)
Script.ScriptInstance
PlayInstanceScript(java.lang.String string, java.lang.String string2, KahluaTable kahluaTable, KahluaTable kahluaTable2)
void
PlayScript(java.lang.String string)
Script.ScriptInstance
PlayScript(java.lang.String string, Script.ScriptInstance scriptInstance)
void
Reset()
void
searchFolders(java.net.URI uRI, java.io.File file, java.util.ArrayList arrayList)
void
StopScript(java.lang.String string)
void
StopScript(Script.ScriptInstance scriptInstance)
void
Trigger(java.lang.String string)
void
Trigger(java.lang.String string, java.lang.String string2)
void
Trigger(java.lang.String string, java.lang.String string2, java.lang.String string3)
void
Trigger(java.lang.String string, java.lang.String string2, java.lang.String string3, java.lang.String string4)
void
UnPauseScript(java.lang.String string)
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 -
FullTypeToItemMap
public final java.util.HashMap FullTypeToItemMap -
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 string, java.lang.String string2) -
FireHook
public void FireHook(java.lang.String string) -
ParseScriptPP
@Deprecated public void ParseScriptPP(java.lang.String string)Deprecated. -
ParseScript
public void ParseScript(java.lang.String string) -
StopScript
public void StopScript(java.lang.String string) -
PlayInstanceScript
public void PlayInstanceScript(java.lang.String string, java.lang.String string2, java.lang.String string3, IsoGameCharacter gameCharacter) -
PlayInstanceScript
public Script.ScriptInstance PlayInstanceScript(java.lang.String string, java.lang.String string2, KahluaTable kahluaTable) -
PlayInstanceScript
public Script.ScriptInstance PlayInstanceScript(java.lang.String string, java.lang.String string2, KahluaTable kahluaTable, KahluaTable kahluaTable2) -
PlayInstanceScript
public Script.ScriptInstance PlayInstanceScript(java.lang.String string, java.lang.String string2, java.util.HashMap hashMap) -
PlayInstanceScript
public Script.ScriptInstance PlayInstanceScript(java.lang.String string, java.lang.String string2, java.util.HashMap hashMap, java.util.HashMap hashMap2) -
PlayInstanceScript
public void PlayInstanceScript(java.lang.String string, java.lang.String string2, java.lang.String string3, IsoGameCharacter gameCharacter, java.lang.String string4, IsoGameCharacter gameCharacter2) -
PlayInstanceScript
public void PlayInstanceScript(java.lang.String string, java.lang.String string2, java.lang.String string3, IsoGameCharacter gameCharacter, java.lang.String string4, IsoGameCharacter gameCharacter2, java.lang.String string5, IsoGameCharacter gameCharacter3) -
PlayScript
public void PlayScript(java.lang.String string) -
PlayScript
public Script.ScriptInstance PlayScript(java.lang.String string, Script.ScriptInstance scriptInstance) -
update
public void update() -
LoadFile
public void LoadFile(java.lang.String string, boolean boolean1) throws java.io.FileNotFoundException- Throws:
java.io.FileNotFoundException
-
LoadFilePP
@Deprecated public void LoadFilePP(java.lang.String string, boolean boolean1) throws java.io.FileNotFoundException, java.io.UnsupportedEncodingExceptionDeprecated.- Throws:
java.io.FileNotFoundException
java.io.UnsupportedEncodingException
-
LoadStory
public void LoadStory(java.lang.String string) 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.net.URI uRI, java.io.File file, java.util.ArrayList arrayList) -
getItemName
public static java.lang.String getItemName(java.lang.String string) -
FillInventory
public void FillInventory(IsoGameCharacter gameCharacter, ItemContainer itemContainer, java.lang.String string) -
Trigger
public void Trigger(java.lang.String string) -
Trigger
public void Trigger(java.lang.String string, java.lang.String string2) -
Trigger
public void Trigger(java.lang.String string, java.lang.String string2, java.lang.String string3) -
Trigger
public void Trigger(java.lang.String string, java.lang.String string2, java.lang.String string3, java.lang.String string4) -
IsScriptPlaying
public boolean IsScriptPlaying(java.lang.String string) -
IsScriptPlaying
-
PauseScript
public void PauseScript(java.lang.String string) -
UnPauseScript
public void UnPauseScript(java.lang.String string) -
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 string) -
getFlagValue
public java.lang.String getFlagValue(java.lang.String string)- 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 string) -
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 string) -
getRecipe
- Specified by:
getRecipe
in interfaceIScriptObjectStore
-
getVehicle
-
getVehicleTemplate
-
CheckExitPoints
public void CheckExitPoints() -
getScript
- Specified by:
getScript
in interfaceIScriptObjectStore
-
getAllItems
public java.util.ArrayList getAllItems() -
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() -
getAllGameSounds
public java.util.ArrayList getAllGameSounds() -
getAllVehicleScripts
public java.util.ArrayList getAllVehicleScripts() -
getZones
public java.util.Stack getZones(java.lang.String string) -
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 string) -
StopScript
-