Package zombie.Lua

Class LuaManager.GlobalObject

java.lang.Object
zombie.Lua.LuaManager.GlobalObject
Enclosing class:
LuaManager

public static class LuaManager.GlobalObject extends Object
  • Constructor Details

    • GlobalObject

      public GlobalObject()
  • Method Details

    • loadVehicleModel

      public static Model loadVehicleModel(String name, String loc, String tex)
    • loadStaticZomboidModel

      public static Model loadStaticZomboidModel(String name, String loc, String tex)
    • loadSkinnedZomboidModel

      public static Model loadSkinnedZomboidModel(String name, String loc, String tex)
    • loadZomboidModel

      public static Model loadZomboidModel(String name, String mesh, String tex, String shader, boolean bStatic)
    • setModelMetaData

      public static void setModelMetaData(String name, String mesh, String tex, String shader, boolean bStatic)
    • reloadModelsMatching

      public static void reloadModelsMatching(String meshName)
    • getSLSoundManager

      public static SLSoundManager getSLSoundManager()
    • getRadioAPI

      public static RadioAPI getRadioAPI()
    • getRadioTranslators

      public static ArrayList<String> getRadioTranslators(Language language)
    • getTranslatorCredits

      public static ArrayList<String> getTranslatorCredits(Language language)
    • getBehaviourDebugPlayer

      public static IsoGameCharacter getBehaviourDebugPlayer()
    • setBehaviorStep

      public static void setBehaviorStep(boolean b)
    • getPuddlesManager

      public static IsoPuddles getPuddlesManager()
    • setPuddles

      public static void setPuddles(float initialPuddles)
    • getZomboidRadio

      public static ZomboidRadio getZomboidRadio()
    • getRandomUUID

      public static String getRandomUUID()
    • sendItemListNet

      public static boolean sendItemListNet(IsoPlayer sender, ArrayList<InventoryItem> items, IsoPlayer receiver, String transferID, String custom)
    • instof

      public static boolean instof(Object obj, String name)
    • serverConnect

      public static void serverConnect(String user, String pass, String server, String localIP, String port, String serverPassword, String serverName)
    • serverConnectCoop

      public static void serverConnectCoop(String serverSteamID)
    • sendPing

      public static void sendPing()
    • forceDisconnect

      public static void forceDisconnect()
    • backToSinglePlayer

      public static void backToSinglePlayer()
    • isIngameState

      public static boolean isIngameState()
    • requestPacketCounts

      public static void requestPacketCounts()
    • canConnect

      public static boolean canConnect()
    • getReconnectCountdownTimer

      public static String getReconnectCountdownTimer()
    • getPacketCounts

      public static se.krka.kahlua.vm.KahluaTable getPacketCounts(int category)
    • getAllItems

      public static ArrayList<Item> getAllItems()
    • scoreboardUpdate

      public static void scoreboardUpdate()
    • save

      public static void save(boolean doCharacter)
    • saveGame

      public static void saveGame()
    • getAllRecipes

      public static ArrayList<Recipe> getAllRecipes()
    • requestUserlog

      public static void requestUserlog(String user)
    • addUserlog

      public static void addUserlog(String user, String type, String text)
    • removeUserlog

      public static void removeUserlog(String user, String type, String text)
    • tabToX

      public static String tabToX(String a, int tabX)
    • isType

      public static boolean isType(Object obj, String name)
    • isoToScreenX

      public static float isoToScreenX(int player, float x, float y, float z)
    • isoToScreenY

      public static float isoToScreenY(int player, float x, float y, float z)
    • screenToIsoX

      public static float screenToIsoX(int player, float x, float y, float z)
    • screenToIsoY

      public static float screenToIsoY(int player, float x, float y, float z)
    • getAmbientStreamManager

      public static BaseAmbientStreamManager getAmbientStreamManager()
    • getSleepingEvent

      public static SleepingEvent getSleepingEvent()
    • setPlayerMovementActive

      public static void setPlayerMovementActive(int id, boolean bActive)
    • setActivePlayer

      public static void setActivePlayer(int id)
    • getPlayer

      public static IsoPlayer getPlayer()
    • getNumActivePlayers

      public static int getNumActivePlayers()
    • playServerSound

      public static void playServerSound(String sound, IsoGridSquare sq)
    • getMaxActivePlayers

      public static int getMaxActivePlayers()
    • getPlayerScreenLeft

      public static int getPlayerScreenLeft(int player)
    • getPlayerScreenTop

      public static int getPlayerScreenTop(int player)
    • getPlayerScreenWidth

      public static int getPlayerScreenWidth(int player)
    • getPlayerScreenHeight

      public static int getPlayerScreenHeight(int player)
    • getPlayerByOnlineID

      public static IsoPlayer getPlayerByOnlineID(int id)
    • initUISystem

      public static void initUISystem()
    • getPerformance

      public static PerformanceSettings getPerformance()
    • getDBSchema

      public static void getDBSchema()
    • getTableResult

      public static void getTableResult(String tableName, int numberPerPages)
    • getWorldSoundManager

      public static WorldSoundManager getWorldSoundManager()
    • AddWorldSound

      public static void AddWorldSound(IsoPlayer player, int radius, int volume)
    • AddNoiseToken

      public static void AddNoiseToken(IsoGridSquare sq, int radius)
    • pauseSoundAndMusic

      public static void pauseSoundAndMusic()
    • resumeSoundAndMusic

      public static void resumeSoundAndMusic()
    • isDemo

      public static boolean isDemo()
    • getTimeInMillis

      public static long getTimeInMillis()
    • getCurrentCoroutine

      public static se.krka.kahlua.vm.Coroutine getCurrentCoroutine()
    • reloadLuaFile

      public static void reloadLuaFile(String filename)
    • reloadServerLuaFile

      public static void reloadServerLuaFile(String filename)
    • getServerSpawnRegions

      public static se.krka.kahlua.vm.KahluaTable getServerSpawnRegions()
    • getServerOptions

      public static ServerOptions getServerOptions()
    • getServerName

      public static String getServerName()
    • getServerIP

      public static String getServerIP()
    • getServerPort

      public static String getServerPort()
    • isShowConnectionInfo

      public static boolean isShowConnectionInfo()
    • setShowConnectionInfo

      public static void setShowConnectionInfo(boolean enabled)
    • isShowServerInfo

      public static boolean isShowServerInfo()
    • setShowServerInfo

      public static void setShowServerInfo(boolean enabled)
    • isShowPingInfo

      public static boolean isShowPingInfo()
    • setShowPingInfo

      public static void setShowPingInfo(boolean enabled)
    • getSpecificPlayer

      public static IsoPlayer getSpecificPlayer(int player)
    • getCameraOffX

      public static float getCameraOffX()
    • getLatestSave

      public static se.krka.kahlua.vm.KahluaTable getLatestSave()
    • isCurrentExecutionPoint

      public static boolean isCurrentExecutionPoint(String file, int line)
    • toggleBreakOnChange

      public static void toggleBreakOnChange(se.krka.kahlua.vm.KahluaTable table, Object key)
    • isDebugEnabled

      public static boolean isDebugEnabled()
    • toggleBreakOnRead

      public static void toggleBreakOnRead(se.krka.kahlua.vm.KahluaTable table, Object key)
    • toggleBreakpoint

      public static void toggleBreakpoint(String file, int line)
    • sendVisual

      public static void sendVisual(IsoPlayer player)
    • sendClothing

      public static void sendClothing(IsoPlayer player)
    • hasDataReadBreakpoint

      public static boolean hasDataReadBreakpoint(se.krka.kahlua.vm.KahluaTable table, Object key)
    • hasDataBreakpoint

      public static boolean hasDataBreakpoint(se.krka.kahlua.vm.KahluaTable table, Object key)
    • hasBreakpoint

      public static boolean hasBreakpoint(String file, int line)
    • getLoadedLuaCount

      public static int getLoadedLuaCount()
    • getLoadedLua

      public static String getLoadedLua(int n)
    • isServer

      public static boolean isServer()
    • isServerSoftReset

      public static boolean isServerSoftReset()
    • isClient

      public static boolean isClient()
    • canModifyPlayerStats

      public static boolean canModifyPlayerStats()
    • executeQuery

      public static void executeQuery(String query, se.krka.kahlua.vm.KahluaTable params)
    • canSeePlayerStats

      public static boolean canSeePlayerStats()
    • getAccessLevel

      public static String getAccessLevel()
    • getOnlinePlayers

      public static ArrayList<IsoPlayer> getOnlinePlayers()
    • getDebug

      public static boolean getDebug()
    • getCameraOffY

      public static float getCameraOffY()
    • createRegionFile

      public static se.krka.kahlua.vm.KahluaTable createRegionFile()
      Create a dynamic table containing all spawnpoints.lua we find in vanilla folder + in loaded mods
      Returns:
    • getMapDirectoryTable

      public static se.krka.kahlua.vm.KahluaTable getMapDirectoryTable()
    • deleteSave

      public static void deleteSave(String file)
    • sendPlayerExtraInfo

      public static void sendPlayerExtraInfo(IsoPlayer p)
    • getServerAddressFromArgs

      public static String getServerAddressFromArgs()
    • getServerPasswordFromArgs

      public static String getServerPasswordFromArgs()
    • getServerListFile

      public static String getServerListFile()
    • getServerList

      public static se.krka.kahlua.vm.KahluaTable getServerList()
    • ping

      public static void ping(String username, String pwd, String ip, String port)
    • stopPing

      public static void stopPing()
    • transformIntoKahluaTable

      public static se.krka.kahlua.vm.KahluaTable transformIntoKahluaTable(HashMap<Object,Object> map)
    • getSaveDirectory

      public static ArrayList<File> getSaveDirectory(String folder)
    • getFullSaveDirectoryTable

      public static se.krka.kahlua.vm.KahluaTable getFullSaveDirectoryTable()
    • getSaveName

      public static String getSaveName(File file)
    • getSaveDirectoryTable

      public static se.krka.kahlua.vm.KahluaTable getSaveDirectoryTable()
    • getMods

      public static List<String> getMods()
    • doChallenge

      public static void doChallenge(se.krka.kahlua.vm.KahluaTable challenge)
    • doTutorial

      public static void doTutorial(se.krka.kahlua.vm.KahluaTable tutorial)
    • deleteAllGameModeSaves

      public static void deleteAllGameModeSaves(String gameMode)
    • sledgeDestroy

      public static void sledgeDestroy(IsoObject object)
    • getTickets

      public static void getTickets(String author)
    • addTicket

      public static void addTicket(String author, String message, int ticketID)
    • removeTicket

      public static void removeTicket(int ticketID)
    • sendFactionInvite

      public static void sendFactionInvite(Faction faction, IsoPlayer host, String invited)
    • acceptFactionInvite

      public static void acceptFactionInvite(Faction faction, String host)
    • sendSafehouseInvite

      public static void sendSafehouseInvite(SafeHouse safehouse, IsoPlayer host, String invited)
    • acceptSafehouseInvite

      public static void acceptSafehouseInvite(SafeHouse safehouse, String host)
    • createHordeFromTo

      public static void createHordeFromTo(float spawnX, float spawnY, float targetX, float targetY, int count)
    • createHordeInAreaTo

      public static void createHordeInAreaTo(int spawnX, int spawnY, int spawnW, int spawnH, int targetX, int targetY, int count)
    • spawnHorde

      public static void spawnHorde(float x, float y, float x2, float y2, float z, int count)
    • createZombie

      public static IsoZombie createZombie(float x, float y, float z, SurvivorDesc desc, int palette, IsoDirections dir)
    • triggerEvent

      public static void triggerEvent(String event)
    • triggerEvent

      public static void triggerEvent(String event, Object param)
    • triggerEvent

      public static void triggerEvent(String event, Object param, Object param2)
    • triggerEvent

      public static void triggerEvent(String event, Object param, Object param2, Object param3)
    • triggerEvent

      public static void triggerEvent(String event, Object param, Object param2, Object param3, Object param4)
    • debugLuaTable

      public static void debugLuaTable(Object param, int depth)
    • debugLuaTable

      public static void debugLuaTable(Object param)
    • sendItemsInContainer

      public static void sendItemsInContainer(IsoObject obj, ItemContainer container)
    • getModDirectoryTable

      public static se.krka.kahlua.vm.KahluaTable getModDirectoryTable()
    • getModInfoByID

      public static ChooseGameInfo.Mod getModInfoByID(String modID)
    • getModInfo

      public static ChooseGameInfo.Mod getModInfo(String modDir)
    • getMapFoldersForMod

      public static ArrayList<String> getMapFoldersForMod(String modID)
    • spawnpointsExistsForMod

      public static boolean spawnpointsExistsForMod(String modID, String mapFolder)
    • getFileSeparator

      public static String getFileSeparator()
    • getScriptManager

      public static ScriptManager getScriptManager()
    • checkSaveFolderExists

      public static boolean checkSaveFolderExists(String f)
    • getAbsoluteSaveFolderName

      public static String getAbsoluteSaveFolderName(String f)
    • checkSaveFileExists

      public static boolean checkSaveFileExists(String f)
    • checkSavePlayerExists

      public static boolean checkSavePlayerExists()
    • fileExists

      public static boolean fileExists(String filename)
    • serverFileExists

      public static boolean serverFileExists(String filename)
    • takeScreenshot

      public static void takeScreenshot()
    • takeScreenshot

      public static void takeScreenshot(String fileName)
    • checkStringPattern

      public static boolean checkStringPattern(String pattern)
    • instanceItem

      public static InventoryItem instanceItem(Item item)
    • instanceItem

      public static InventoryItem instanceItem(String item)
    • createNewScriptItem

      public static Item createNewScriptItem(String base, String name, String display, String type, String icon)
    • cloneItemType

      public static Item cloneItemType(String newName, String oldName)
    • moduleDotType

      public static String moduleDotType(String module, String type)
    • require

      public static Object require(String f)
    • getRenderer

      public static SpriteRenderer getRenderer()
    • getGameTime

      public static GameTime getGameTime()
    • getStatistics

      public static se.krka.kahlua.vm.KahluaTable getStatistics()
    • getMPStatus

      public static se.krka.kahlua.vm.KahluaTable getMPStatus()
    • getMaxPlayers

      public static Double getMaxPlayers()
    • getWorld

      public static IsoWorld getWorld()
    • getCell

      public static IsoCell getCell()
    • getSandboxOptions

      public static SandboxOptions getSandboxOptions()
    • getFileOutput

      public static DataOutputStream getFileOutput(String filename)
    • getLastStandPlayersDirectory

      public static String getLastStandPlayersDirectory()
    • getLastStandPlayerFileNames

      public static List<String> getLastStandPlayerFileNames() throws IOException
      Throws:
      IOException
    • getAllSavedPlayers

      @Deprecated public static List<BufferedReader> getAllSavedPlayers() throws IOException
      Deprecated.
      Throws:
      IOException
    • getSandboxPresets

      public static List<String> getSandboxPresets() throws IOException
      Throws:
      IOException
    • deleteSandboxPreset

      public static void deleteSandboxPreset(String name)
    • getFileReader

      public static BufferedReader getFileReader(String filename, boolean createIfNull) throws IOException
      Throws:
      IOException
    • getModFileReader

      public static BufferedReader getModFileReader(String modId, String filename, boolean createIfNull) throws IOException
      Throws:
      IOException
    • refreshAnimSets

      public static void refreshAnimSets(boolean reload)
    • reloadActionGroups

      public static void reloadActionGroups()
    • getModFileWriter

      public static LuaManager.GlobalObject.LuaFileWriter getModFileWriter(String modId, String filename, boolean createIfNull, boolean append)
    • updateFire

      public static void updateFire()
    • deletePlayerSave

      public static void deletePlayerSave(String fileName)
    • getControllerCount

      public static int getControllerCount()
    • isControllerConnected

      public static boolean isControllerConnected(int index)
    • getControllerGUID

      public static String getControllerGUID(int joypad)
    • getControllerName

      public static String getControllerName(int joypad)
    • getControllerAxisCount

      public static int getControllerAxisCount(int c)
    • getControllerAxisValue

      public static float getControllerAxisValue(int c, int axis)
    • getControllerDeadZone

      public static float getControllerDeadZone(int c, int axis)
    • setControllerDeadZone

      public static void setControllerDeadZone(int c, int axis, float value)
    • saveControllerSettings

      public static void saveControllerSettings(int c)
    • getControllerButtonCount

      public static int getControllerButtonCount(int c)
    • getControllerPovX

      public static float getControllerPovX(int c)
    • getControllerPovY

      public static float getControllerPovY(int c)
    • reloadControllerConfigFiles

      public static void reloadControllerConfigFiles()
    • isJoypadPressed

      public static boolean isJoypadPressed(int joypad, int button)
    • isJoypadDown

      public static boolean isJoypadDown(int joypad)
    • isJoypadLTPressed

      public static boolean isJoypadLTPressed(int joypad)
    • isJoypadRTPressed

      public static boolean isJoypadRTPressed(int joypad)
    • isJoypadLeftStickButtonPressed

      public static boolean isJoypadLeftStickButtonPressed(int joypad)
    • isJoypadRightStickButtonPressed

      public static boolean isJoypadRightStickButtonPressed(int joypad)
    • getJoypadAimingAxisX

      public static float getJoypadAimingAxisX(int joypad)
    • getJoypadAimingAxisY

      public static float getJoypadAimingAxisY(int joypad)
    • getJoypadMovementAxisX

      public static float getJoypadMovementAxisX(int joypad)
    • getJoypadMovementAxisY

      public static float getJoypadMovementAxisY(int joypad)
    • getJoypadAButton

      public static int getJoypadAButton(int joypad)
    • getJoypadBButton

      public static int getJoypadBButton(int joypad)
    • getJoypadXButton

      public static int getJoypadXButton(int joypad)
    • getJoypadYButton

      public static int getJoypadYButton(int joypad)
    • getJoypadLBumper

      public static int getJoypadLBumper(int joypad)
    • getJoypadRBumper

      public static int getJoypadRBumper(int joypad)
    • getJoypadBackButton

      public static int getJoypadBackButton(int joypad)
    • getJoypadStartButton

      public static int getJoypadStartButton(int joypad)
    • getJoypadLeftStickButton

      public static int getJoypadLeftStickButton(int joypad)
    • getJoypadRightStickButton

      public static int getJoypadRightStickButton(int joypad)
    • wasMouseActiveMoreRecentlyThanJoypad

      public static boolean wasMouseActiveMoreRecentlyThanJoypad()
    • activateJoypadOnSteamDeck

      public static void activateJoypadOnSteamDeck()
    • reactivateJoypadAfterResetLua

      public static boolean reactivateJoypadAfterResetLua()
    • isJoypadConnected

      public static boolean isJoypadConnected(int index)
    • toInt

      public static int toInt(double val)
    • getClientUsername

      public static String getClientUsername()
    • setPlayerJoypad

      public static void setPlayerJoypad(int player, int joypad, IsoPlayer playerObj, String username)
    • setPlayerMouse

      public static void setPlayerMouse(IsoPlayer playerObj)
    • revertToKeyboardAndMouse

      public static void revertToKeyboardAndMouse()
    • isJoypadUp

      public static boolean isJoypadUp(int joypad)
    • isJoypadLeft

      public static boolean isJoypadLeft(int joypad)
    • isJoypadRight

      public static boolean isJoypadRight(int joypad)
    • isJoypadLBPressed

      public static boolean isJoypadLBPressed(int joypad)
    • isJoypadRBPressed

      public static boolean isJoypadRBPressed(int joypad)
    • getButtonCount

      public static int getButtonCount(int joypad)
    • setDebugToggleControllerPluggedIn

      public static void setDebugToggleControllerPluggedIn(int index)
    • getFileWriter

      public static LuaManager.GlobalObject.LuaFileWriter getFileWriter(String filename, boolean createIfNull, boolean append)
    • getSandboxFileWriter

      public static LuaManager.GlobalObject.LuaFileWriter getSandboxFileWriter(String filename, boolean createIfNull, boolean append)
    • createStory

      public static void createStory(String storyName)
    • createWorld

      public static void createWorld(String worldName)
    • sanitizeWorldName

      public static String sanitizeWorldName(String worldName)
    • forceChangeState

      public static void forceChangeState(GameState state)
    • endFileOutput

      public static void endFileOutput()
    • getFileInput

      public static DataInputStream getFileInput(String filename) throws IOException
      Throws:
      IOException
    • getGameFilesInput

      public static DataInputStream getGameFilesInput(String filename)
    • getGameFilesTextInput

      public static BufferedReader getGameFilesTextInput(String filename)
    • endTextFileInput

      public static void endTextFileInput()
    • endFileInput

      public static void endFileInput()
    • getLineNumber

      public static int getLineNumber(se.krka.kahlua.vm.LuaCallFrame c)
    • ZombRand

      public static double ZombRand(double max)
    • ZombRandBetween

      public static double ZombRandBetween(double min, double max)
    • ZombRand

      public static double ZombRand(double min, double max)
    • ZombRandFloat

      public static float ZombRandFloat(float min, float max)
    • getShortenedFilename

      public static String getShortenedFilename(String str)
    • isKeyDown

      public static boolean isKeyDown(int key)
    • wasKeyDown

      public static boolean wasKeyDown(int key)
    • isKeyPressed

      public static boolean isKeyPressed(int key)
    • getFMODSoundBank

      public static BaseSoundBank getFMODSoundBank()
    • isSoundPlaying

      public static boolean isSoundPlaying(Object sound)
    • stopSound

      public static void stopSound(long sound)
    • isShiftKeyDown

      public static boolean isShiftKeyDown()
    • isCtrlKeyDown

      public static boolean isCtrlKeyDown()
    • isAltKeyDown

      public static boolean isAltKeyDown()
    • getCore

      public static Core getCore()
    • getSquare

      public static IsoGridSquare getSquare(double x, double y, double z)
    • getDebugOptions

      public static DebugOptions getDebugOptions()
    • setShowPausedMessage

      public static void setShowPausedMessage(boolean b)
    • getFilenameOfCallframe

      public static String getFilenameOfCallframe(se.krka.kahlua.vm.LuaCallFrame c)
    • getFilenameOfClosure

      public static String getFilenameOfClosure(se.krka.kahlua.vm.LuaClosure c)
    • getFirstLineOfClosure

      public static int getFirstLineOfClosure(se.krka.kahlua.vm.LuaClosure c)
    • getLocalVarCount

      public static int getLocalVarCount(se.krka.kahlua.vm.Coroutine c)
    • isSystemLinux

      public static boolean isSystemLinux()
    • isSystemMacOS

      public static boolean isSystemMacOS()
    • isSystemWindows

      public static boolean isSystemWindows()
    • isModActive

      public static boolean isModActive(ChooseGameInfo.Mod mod)
    • openURl

      public static void openURl(String url)
    • isDesktopOpenSupported

      public static boolean isDesktopOpenSupported()
    • showFolderInDesktop

      public static void showFolderInDesktop(String folder)
    • getActivatedMods

      public static ArrayList<String> getActivatedMods()
    • toggleModActive

      public static void toggleModActive(ChooseGameInfo.Mod mod, boolean active)
    • saveModsFile

      public static void saveModsFile()
    • manipulateSavefile

      public static void manipulateSavefile(String folder, String action)
    • getLocalVarName

      public static String getLocalVarName(se.krka.kahlua.vm.Coroutine c, int n)
    • getLocalVarStack

      public static int getLocalVarStack(se.krka.kahlua.vm.Coroutine c, int n)
    • getCallframeTop

      public static int getCallframeTop(se.krka.kahlua.vm.Coroutine c)
    • getCoroutineTop

      public static int getCoroutineTop(se.krka.kahlua.vm.Coroutine c)
    • getCoroutineObjStack

      public static Object getCoroutineObjStack(se.krka.kahlua.vm.Coroutine c, int n)
    • getCoroutineObjStackWithBase

      public static Object getCoroutineObjStackWithBase(se.krka.kahlua.vm.Coroutine c, int n)
    • localVarName

      public static String localVarName(se.krka.kahlua.vm.Coroutine c, int n)
    • getCoroutineCallframeStack

      public static se.krka.kahlua.vm.LuaCallFrame getCoroutineCallframeStack(se.krka.kahlua.vm.Coroutine c, int n)
    • createTile

      public static void createTile(String tile, IsoGridSquare square)
    • getNumClassFunctions

      public static int getNumClassFunctions(Object o)
    • getClassFunction

      public static Method getClassFunction(Object o, int i)
    • getNumClassFields

      public static int getNumClassFields(Object o)
    • getClassField

      public static Field getClassField(Object o, int i)
    • getDirectionTo

      public static IsoDirections getDirectionTo(IsoGameCharacter chara, IsoObject objTarget)
    • translatePointXInOverheadMapToWindow

      public static float translatePointXInOverheadMapToWindow(float x, UIElement ui, float zoom, float xpos)
    • translatePointYInOverheadMapToWindow

      public static float translatePointYInOverheadMapToWindow(float y, UIElement ui, float zoom, float ypos)
    • translatePointXInOverheadMapToWorld

      public static float translatePointXInOverheadMapToWorld(float x, UIElement ui, float zoom, float xpos)
    • translatePointYInOverheadMapToWorld

      public static float translatePointYInOverheadMapToWorld(float y, UIElement ui, float zoom, float ypos)
    • drawOverheadMap

      public static void drawOverheadMap(UIElement ui, float zoom, float xpos, float ypos)
    • assaultPlayer

      public static void assaultPlayer()
    • isoRegionsRenderer

      public static IsoRegionsRenderer isoRegionsRenderer()
    • zpopNewRenderer

      public static ZombiePopulationRenderer zpopNewRenderer()
    • zpopSpawnTimeToZero

      public static void zpopSpawnTimeToZero(int cellX, int cellY)
    • zpopClearZombies

      public static void zpopClearZombies(int cellX, int cellY)
    • zpopSpawnNow

      public static void zpopSpawnNow(int cellX, int cellY)
    • addVirtualZombie

      public static void addVirtualZombie(int x, int y)
    • luaDebug

      public static void luaDebug()
    • setAggroTarget

      public static void setAggroTarget(int id, int x, int y)
    • debugFullyStreamedIn

      public static void debugFullyStreamedIn(int x, int y)
    • getClassFieldVal

      public static Object getClassFieldVal(Object o, Field field)
    • getMethodParameter

      public static String getMethodParameter(Method o, int i)
    • getMethodParameterCount

      public static int getMethodParameterCount(Method o)
    • breakpoint

      public static void breakpoint()
    • getLuaDebuggerErrorCount

      public static int getLuaDebuggerErrorCount()
    • getLuaDebuggerErrors

      public static ArrayList<String> getLuaDebuggerErrors()
    • doLuaDebuggerAction

      public static void doLuaDebuggerAction(String action)
    • getGameSpeed

      public static int getGameSpeed()
    • setGameSpeed

      public static void setGameSpeed(int NewSpeed)
    • isGamePaused

      public static boolean isGamePaused()
    • getMouseXScaled

      public static int getMouseXScaled()
    • getMouseYScaled

      public static int getMouseYScaled()
    • getMouseX

      public static int getMouseX()
    • setMouseXY

      public static void setMouseXY(int x, int y)
    • isMouseButtonDown

      public static boolean isMouseButtonDown(int number)
    • getMouseY

      public static int getMouseY()
    • getSoundManager

      public static BaseSoundManager getSoundManager()
    • getLastPlayedDate

      public static String getLastPlayedDate(String filename)
    • getTextureFromSaveDir

      public static Texture getTextureFromSaveDir(String filename, String saveName)
    • getSaveInfo

      public static se.krka.kahlua.vm.KahluaTable getSaveInfo(String saveDir)
    • renameSaveFile

      public static boolean renameSaveFile(String gameMode, String oldName, String newName)
    • setSavefilePlayer1

      public static void setSavefilePlayer1(String gameMode, String saveDir, int sqlID)
    • getServerSavedWorldVersion

      public static int getServerSavedWorldVersion(String saveFolder)
    • getZombieInfo

      public static se.krka.kahlua.vm.KahluaTable getZombieInfo(IsoZombie zombie)
    • getPlayerInfo

      public static se.krka.kahlua.vm.KahluaTable getPlayerInfo(IsoPlayer player)
    • getMapInfo

      public static se.krka.kahlua.vm.KahluaTable getMapInfo(String mapDir)
    • getVehicleInfo

      public static se.krka.kahlua.vm.KahluaTable getVehicleInfo(BaseVehicle vehicle)
    • getLotDirectories

      public static ArrayList<String> getLotDirectories()
    • useTextureFiltering

      public static void useTextureFiltering(boolean bUse)
    • getTexture

      public static Texture getTexture(String filename)
    • getTextManager

      public static TextManager getTextManager()
    • setProgressBarValue

      public static void setProgressBarValue(IsoPlayer player, int value)
    • getText

      public static String getText(String txt)
    • getText

      public static String getText(String txt, Object arg1)
    • getText

      public static String getText(String txt, Object arg1, Object arg2)
    • getText

      public static String getText(String txt, Object arg1, Object arg2, Object arg3)
    • getText

      public static String getText(String txt, Object arg1, Object arg2, Object arg3, Object arg4)
    • getTextOrNull

      public static String getTextOrNull(String txt)
    • getTextOrNull

      public static String getTextOrNull(String txt, Object arg1)
    • getTextOrNull

      public static String getTextOrNull(String txt, Object arg1, Object arg2)
    • getTextOrNull

      public static String getTextOrNull(String txt, Object arg1, Object arg2, Object arg3)
    • getTextOrNull

      public static String getTextOrNull(String txt, Object arg1, Object arg2, Object arg3, Object arg4)
    • getItemText

      public static String getItemText(String txt)
    • getRadioText

      public static String getRadioText(String txt)
    • getTextMediaEN

      public static String getTextMediaEN(String txt)
    • getItemNameFromFullType

      public static String getItemNameFromFullType(String fullType)
    • getRecipeDisplayName

      public static String getRecipeDisplayName(String name)
    • getMyDocumentFolder

      public static String getMyDocumentFolder()
    • getSpriteManager

      public static IsoSpriteManager getSpriteManager(String sprite)
    • getSprite

      public static IsoSprite getSprite(String sprite)
    • getServerModData

      public static void getServerModData()
    • isXBOXController

      public static boolean isXBOXController()
    • sendClientCommand

      public static void sendClientCommand(String module, String command, se.krka.kahlua.vm.KahluaTable args)
    • sendClientCommand

      public static void sendClientCommand(IsoPlayer player, String module, String command, se.krka.kahlua.vm.KahluaTable args)
    • sendServerCommand

      public static void sendServerCommand(String module, String command, se.krka.kahlua.vm.KahluaTable args)
    • sendServerCommand

      public static void sendServerCommand(IsoPlayer player, String module, String command, se.krka.kahlua.vm.KahluaTable args)
    • getOnlineUsername

      public static String getOnlineUsername()
    • isValidUserName

      public static boolean isValidUserName(String user)
    • getHourMinute

      public static String getHourMinute()
    • SendCommandToServer

      public static void SendCommandToServer(String command)
    • isAdmin

      public static boolean isAdmin()
    • canModifyPlayerScoreboard

      public static boolean canModifyPlayerScoreboard()
    • isAccessLevel

      public static boolean isAccessLevel(String accessLevel)
    • sendBandage

      public static void sendBandage(int onlineID, int i, boolean bandaged, float bandageLife, boolean isAlcoholic, String bandageType)
    • sendCataplasm

      public static void sendCataplasm(int onlineID, int i, float plantainFactor, float comfreyFactor, float garlicFactor)
    • sendStitch

      public static void sendStitch(IsoGameCharacter wielder, IsoGameCharacter target, BodyPart bodyPart, InventoryItem item, boolean doIt)
    • sendDisinfect

      public static void sendDisinfect(IsoGameCharacter wielder, IsoGameCharacter target, BodyPart bodyPart, InventoryItem alcohol)
    • sendSplint

      public static void sendSplint(int onlineID, int i, boolean doIt, float factor, String splintItem)
    • sendRemoveGlass

      public static void sendRemoveGlass(IsoGameCharacter wielder, IsoGameCharacter target, BodyPart bodyPart, boolean handPain)
    • sendRemoveBullet

      public static void sendRemoveBullet(IsoGameCharacter wielder, IsoGameCharacter target, BodyPart bodyPart)
    • sendCleanBurn

      public static void sendCleanBurn(IsoGameCharacter wielder, IsoGameCharacter target, BodyPart bodyPart, InventoryItem bandage)
    • getGameClient

      public static GameClient getGameClient()
    • sendRequestInventory

      public static void sendRequestInventory(IsoPlayer player)
    • InvMngGetItem

      public static void InvMngGetItem(long itemId, String itemType, IsoPlayer player)
    • InvMngRemoveItem

      public static void InvMngRemoveItem(long itemId, IsoPlayer player)
    • getConnectedPlayers

      public static ArrayList<IsoPlayer> getConnectedPlayers()
    • getPlayerFromUsername

      public static IsoPlayer getPlayerFromUsername(String username)
    • isCoopHost

      public static boolean isCoopHost()
    • setAdmin

      public static void setAdmin()
    • addWarningPoint

      public static void addWarningPoint(String user, String reason, int amount)
    • toggleSafetyServer

      public static void toggleSafetyServer(IsoPlayer player)
    • disconnect

      public static void disconnect()
    • writeLog

      public static void writeLog(String loggerName, String logs)
    • doKeyPress

      public static void doKeyPress(boolean doIt)
    • getEvolvedRecipes

      public static Stack<EvolvedRecipe> getEvolvedRecipes()
    • getZone

      public static IsoMetaGrid.Zone getZone(int x, int y, int z)
    • getZones

      public static ArrayList<IsoMetaGrid.Zone> getZones(int x, int y, int z)
    • getVehicleZoneAt

      public static IsoMetaGrid.VehicleZone getVehicleZoneAt(int x, int y, int z)
    • replaceWith

      public static String replaceWith(String toReplace, String regex, String by)
    • getTimestamp

      public static long getTimestamp()
    • getTimestampMs

      public static long getTimestampMs()
    • forceSnowCheck

      public static void forceSnowCheck()
    • getGametimeTimestamp

      public static long getGametimeTimestamp()
    • canInviteFriends

      public static boolean canInviteFriends()
    • inviteFriend

      public static void inviteFriend(String steamID)
    • getFriendsList

      public static se.krka.kahlua.vm.KahluaTable getFriendsList()
    • getSteamModeActive

      public static Boolean getSteamModeActive()
    • isValidSteamID

      public static boolean isValidSteamID(String s)
    • getCurrentUserSteamID

      public static String getCurrentUserSteamID()
    • getCurrentUserProfileName

      public static String getCurrentUserProfileName()
    • getSteamScoreboard

      public static boolean getSteamScoreboard()
    • isSteamOverlayEnabled

      public static boolean isSteamOverlayEnabled()
    • activateSteamOverlayToWorkshop

      public static void activateSteamOverlayToWorkshop()
    • activateSteamOverlayToWorkshopUser

      public static void activateSteamOverlayToWorkshopUser()
    • activateSteamOverlayToWorkshopItem

      public static void activateSteamOverlayToWorkshopItem(String itemID)
    • activateSteamOverlayToWebPage

      public static void activateSteamOverlayToWebPage(String url)
    • getSteamProfileNameFromSteamID

      public static String getSteamProfileNameFromSteamID(String steamID)
    • getSteamAvatarFromSteamID

      public static Texture getSteamAvatarFromSteamID(String steamID)
    • getSteamIDFromUsername

      public static String getSteamIDFromUsername(String username)
    • resetRegionFile

      public static void resetRegionFile()
    • getSteamProfileNameFromUsername

      public static String getSteamProfileNameFromUsername(String username)
    • getSteamAvatarFromUsername

      public static Texture getSteamAvatarFromUsername(String username)
    • getSteamWorkshopStagedItems

      public static ArrayList<SteamWorkshopItem> getSteamWorkshopStagedItems()
    • getSteamWorkshopItemIDs

      public static ArrayList<String> getSteamWorkshopItemIDs()
    • getSteamWorkshopItemMods

      public static ArrayList<ChooseGameInfo.Mod> getSteamWorkshopItemMods(String itemIDStr)
    • isSteamRunningOnSteamDeck

      public static boolean isSteamRunningOnSteamDeck()
    • showSteamGamepadTextInput

      public static boolean showSteamGamepadTextInput(boolean password, boolean multiLine, String description, int maxChars, String existingText)
    • showSteamFloatingGamepadTextInput

      public static boolean showSteamFloatingGamepadTextInput(boolean multiLine, int x, int y, int width, int height)
    • isFloatingGamepadTextInputVisible

      public static boolean isFloatingGamepadTextInputVisible()
    • sendPlayerStatsChange

      public static void sendPlayerStatsChange(IsoPlayer player)
    • sendPersonalColor

      public static void sendPersonalColor(IsoPlayer player)
    • requestTrading

      public static void requestTrading(IsoPlayer you, IsoPlayer other)
    • acceptTrading

      public static void acceptTrading(IsoPlayer you, IsoPlayer other, boolean accept)
    • tradingUISendAddItem

      public static void tradingUISendAddItem(IsoPlayer you, IsoPlayer other, InventoryItem i)
    • tradingUISendRemoveItem

      public static void tradingUISendRemoveItem(IsoPlayer you, IsoPlayer other, int index)
    • tradingUISendUpdateState

      public static void tradingUISendUpdateState(IsoPlayer you, IsoPlayer other, int state)
    • querySteamWorkshopItemDetails

      public static void querySteamWorkshopItemDetails(ArrayList<String> itemIDs, se.krka.kahlua.vm.LuaClosure functionObj, Object arg1)
    • connectToServerStateCallback

      public static void connectToServerStateCallback(String button)
    • getPublicServersList

      public static se.krka.kahlua.vm.KahluaTable getPublicServersList()
    • steamRequestInternetServersList

      public static void steamRequestInternetServersList()
    • steamReleaseInternetServersRequest

      public static void steamReleaseInternetServersRequest()
    • steamRequestInternetServersCount

      public static int steamRequestInternetServersCount()
    • steamGetInternetServerDetails

      public static Server steamGetInternetServerDetails(int index)
    • steamRequestServerRules

      public static boolean steamRequestServerRules(String host, int port)
    • steamRequestServerDetails

      public static boolean steamRequestServerDetails(String host, int port)
    • isPublicServerListAllowed

      public static boolean isPublicServerListAllowed()
    • is64bit

      public static boolean is64bit()
    • testSound

      public static void testSound()
    • debugSetRoomType

      public static void debugSetRoomType(Double roomType)
    • copyTable

      public static se.krka.kahlua.vm.KahluaTable copyTable(se.krka.kahlua.vm.KahluaTable table)
    • copyTable

      public static se.krka.kahlua.vm.KahluaTable copyTable(se.krka.kahlua.vm.KahluaTable to, se.krka.kahlua.vm.KahluaTable from)
    • getUrlInputStream

      public static DataInputStream getUrlInputStream(String url)
    • renderIsoCircle

      public static void renderIsoCircle(float x, float y, float z, float radius, float r, float g, float b, float a, int thickness)
    • configureLighting

      public static void configureLighting(float darkStep)
    • testHelicopter

      public static void testHelicopter()
    • endHelicopter

      public static void endHelicopter()
    • getServerSettingsManager

      public static ServerSettingsManager getServerSettingsManager()
    • rainConfig

      public static void rainConfig(String cmd, int arg)
    • sendSwitchSeat

      public static void sendSwitchSeat(BaseVehicle vehicle, IsoGameCharacter chr, int seatFrom, int seatTo)
    • getVehicleById

      public static BaseVehicle getVehicleById(int id)
    • addBloodSplat

      public void addBloodSplat(IsoGridSquare sq, int nbr)
    • addCarCrash

      public static void addCarCrash()
    • createRandomDeadBody

      public static IsoDeadBody createRandomDeadBody(IsoGridSquare square, int blood)
    • addZombieSitting

      public void addZombieSitting(int x, int y, int z)
    • addZombiesEating

      public void addZombiesEating(int x, int y, int z, int totalZombies, boolean skeletonBody)
    • addZombiesInOutfitArea

      public ArrayList<IsoZombie> addZombiesInOutfitArea(int x1, int y1, int x2, int y2, int z, int totalZombies, String outfit, Integer femaleChance)
    • addZombiesInOutfit

      public static ArrayList<IsoZombie> addZombiesInOutfit(int x, int y, int z, int totalZombies, String outfit, Integer femaleChance)
    • addZombiesInOutfit

      public static ArrayList<IsoZombie> addZombiesInOutfit(int x, int y, int z, int totalZombies, String outfit, Integer femaleChance, boolean isCrawler, boolean isFallOnFront, boolean isFakeDead, boolean isKnockedDown, float health)
    • addZombiesInBuilding

      public ArrayList<IsoZombie> addZombiesInBuilding(BuildingDef def, int totalZombies, String outfit, RoomDef room, Integer femaleChance)
    • addVehicleDebug

      public static BaseVehicle addVehicleDebug(String scriptName, IsoDirections dir, Integer skinIndex, IsoGridSquare sq)
    • addVehicle

      public static BaseVehicle addVehicle(String script)
    • attachTrailerToPlayerVehicle

      public static void attachTrailerToPlayerVehicle(int playerIndex)
    • getKeyName

      public static String getKeyName(int key)
    • getKeyCode

      public static int getKeyCode(String keyName)
    • queueCharEvent

      public static void queueCharEvent(String eventChar)
    • queueKeyEvent

      public static void queueKeyEvent(int lwjglKeyCode)
    • addAllVehicles

      public static void addAllVehicles()
    • addAllBurntVehicles

      public static void addAllBurntVehicles()
    • addAllSmashedVehicles

      public static void addAllSmashedVehicles()
    • addAllVehicles

      public static void addAllVehicles(Predicate<VehicleScript> predicate)
    • addPhysicsObject

      public static BaseVehicle addPhysicsObject()
    • toggleVehicleRenderToTexture

      public static void toggleVehicleRenderToTexture()
    • reloadSoundFiles

      public static void reloadSoundFiles()
    • getAnimationViewerState

      public static AnimationViewerState getAnimationViewerState()
    • getAttachmentEditorState

      public static AttachmentEditorState getAttachmentEditorState()
    • getEditVehicleState

      public static EditVehicleState getEditVehicleState()
    • showAnimationViewer

      public static void showAnimationViewer()
    • showAttachmentEditor

      public static void showAttachmentEditor()
    • showChunkDebugger

      public static void showChunkDebugger()
    • showGlobalObjectDebugger

      public static void showGlobalObjectDebugger()
    • showVehicleEditor

      public static void showVehicleEditor(String scriptName)
    • showWorldMapEditor

      public static void showWorldMapEditor(String value)
    • reloadVehicles

      public static void reloadVehicles()
    • reloadEngineRPM

      public static void reloadEngineRPM()
    • proceedPM

      public static String proceedPM(String command)
    • processSayMessage

      public static void processSayMessage(String message)
    • processGeneralMessage

      public static void processGeneralMessage(String message)
    • processShoutMessage

      public static void processShoutMessage(String message)
    • ProceedFactionMessage

      public static void ProceedFactionMessage(String message)
    • ProcessSafehouseMessage

      public static void ProcessSafehouseMessage(String message)
    • ProcessAdminChatMessage

      public static void ProcessAdminChatMessage(String message)
    • showWrongChatTabMessage

      public static void showWrongChatTabMessage(int actualTabID, int rightTabID, String chatCommand)
    • focusOnTab

      public static void focusOnTab(Short id)
    • updateChatSettings

      public static void updateChatSettings(String fontSize, boolean showTimestamp, boolean showTitle)
    • checkPlayerCanUseChat

      public static Boolean checkPlayerCanUseChat(String chatCommand)
    • reloadVehicleTextures

      public static void reloadVehicleTextures(String scriptName)
    • useStaticErosionRand

      public static void useStaticErosionRand(boolean use)
    • getClimateManager

      public static ClimateManager getClimateManager()
    • getClimateMoon

      public static ClimateMoon getClimateMoon()
    • getWorldMarkers

      public static WorldMarkers getWorldMarkers()
    • getIsoMarkers

      public static IsoMarkers getIsoMarkers()
    • getErosion

      public static ErosionMain getErosion()
    • getAllOutfits

      public static ArrayList<String> getAllOutfits(boolean female)
    • getAllVehicles

      public static ArrayList<String> getAllVehicles()
    • getAllHairStyles

      public static ArrayList<String> getAllHairStyles(boolean female)
    • getHairStylesInstance

      public static HairStyles getHairStylesInstance()
    • getBeardStylesInstance

      public static BeardStyles getBeardStylesInstance()
    • getAllBeardStyles

      public static ArrayList<String> getAllBeardStyles()
    • getAllItemsForBodyLocation

      public static se.krka.kahlua.vm.KahluaTable getAllItemsForBodyLocation(String bodyLocation)
    • getAllDecalNamesForItem

      public static ArrayList<String> getAllDecalNamesForItem(InventoryItem item)
    • screenZoomIn

      public void screenZoomIn()
    • screenZoomOut

      public void screenZoomOut()
    • addSound

      public void addSound(IsoObject source, int x, int y, int z, int radius, int volume)
    • sendAddXp

      public void sendAddXp(IsoPlayer player, PerkFactory.Perk perk, int amount)
    • SyncXp

      public void SyncXp(IsoPlayer player)
    • checkServerName

      public String checkServerName(String name)
    • Render3DItem

      public void Render3DItem(InventoryItem item, IsoGridSquare sq, float xoffset, float yoffset, float zoffset, float rotation)
    • getContainerOverlays

      public ContainerOverlays getContainerOverlays()
    • getTileOverlays

      public TileOverlays getTileOverlays()
    • getAverageFSP

      public Double getAverageFSP()
    • createItemTransaction

      public static void createItemTransaction(InventoryItem item, ItemContainer src, ItemContainer dst)
    • removeItemTransaction

      public static void removeItemTransaction(InventoryItem item, ItemContainer src, ItemContainer dst)
    • isItemTransactionConsistent

      public static boolean isItemTransactionConsistent(InventoryItem item, ItemContainer src, ItemContainer dst)
    • getServerStatistic

      public static se.krka.kahlua.vm.KahluaTable getServerStatistic()
    • setServerStatisticEnable

      public static void setServerStatisticEnable(boolean enable)
    • getServerStatisticEnable

      public static boolean getServerStatisticEnable()
    • getSearchMode

      public static SearchMode getSearchMode()
    • timSort

      public static void timSort(se.krka.kahlua.vm.KahluaTable table, Object functionObject)