Package zombie.Lua
Class LuaManager.GlobalObject
java.lang.Object
zombie.Lua.LuaManager.GlobalObject
- Enclosing class:
- LuaManager
public static class LuaManager.GlobalObject
extends java.lang.Object
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
LuaManager.GlobalObject.LuaFileWriter
-
Constructor Summary
Constructors Constructor Description GlobalObject()
-
Method Summary
Modifier and Type Method Description static void
acceptFactionInvite(Faction faction, java.lang.String host)
static void
acceptTrading(IsoPlayer you, IsoPlayer other, boolean accept)
static void
activateSteamOverlayToWebPage(java.lang.String url)
static void
activateSteamOverlayToWorkshop()
static void
activateSteamOverlayToWorkshopItem(java.lang.String itemID)
static void
activateSteamOverlayToWorkshopUser()
void
addLevelUpPoint(IsoPlayer player)
static void
AddNoiseToken(IsoGridSquare sq, int radius)
void
addSound(IsoObject source, int x, int y, int z, int radius, int volume)
static void
addTicket(java.lang.String author, java.lang.String message, int ticketID)
static void
addUserlog(java.lang.String user, java.lang.String type, java.lang.String text)
static void
addVirtualZombie(int x, int y)
static void
addWarningPoint(java.lang.String user, java.lang.String reason, int amount)
static void
AddWorldSound(IsoPlayer player, int radius)
static void
assaultPlayer()
static void
backToSinglePlayer()
static void
breakpoint()
static boolean
canInviteFriends()
static boolean
canModifyPlayerScoreboard()
static boolean
canModifyPlayerStats()
static boolean
canSeePlayerStats()
static boolean
checkSaveFileExists(java.lang.String f)
static boolean
checkSaveFolderExists(java.lang.String f)
static Item
cloneItemType(java.lang.String newName, java.lang.String oldName)
static void
configureLighting(float darkStep)
static void
connectToServerStateCallback(java.lang.String button)
static KahluaTable
copyTable(KahluaTable table)
static void
createHordeFromTo(float spawnX, float spawnY, float targetX, float targetY, int count)
static void
createHordeInAreaTo(int spawnX, int spawnY, int spawnW, int spawnH, int targetX, int targetY, int count)
static Item
createNewScriptItem(java.lang.String base, java.lang.String name, java.lang.String display, java.lang.String type, java.lang.String icon)
static KahluaTable
createRegionFile()
static void
createStory(java.lang.String storyName)
static void
createTile(java.lang.String tile, IsoGridSquare square)
static void
createWorld(java.lang.String worldName)
static IsoZombie
createZombie(float x, float y, float z, SurvivorDesc desc, int palette, IsoDirections dir)
static void
debugLuaTable(java.lang.Object param)
static void
debugLuaTable(java.lang.Object param, int depth)
static void
deleteAllGameModeSaves(java.lang.String gameMode)
static void
deletePlayerSave(java.lang.String fileName)
static void
deleteSandboxPreset(java.lang.String name)
static void
deleteSave(java.lang.String file)
static void
disconnect()
static void
doChallenge(KahluaTable challenge)
static void
doKeyPress(boolean doIt)
static void
doTutorial(KahluaTable tutorial)
static void
drawOverheadMap(UIElement ui, float zoom, float xpos, float ypos)
static void
endFileInput()
static void
endFileOutput()
static void
endTextFileInput()
static void
executeQuery(java.lang.String query)
static boolean
fileExists(java.lang.String filename)
static void
forceChangeState(GameState state)
static void
forceDisconnect()
static void
forceSnowCheck()
static java.lang.String
getAbsoluteSaveFolderName(java.lang.String f)
static java.lang.String
getAccessLevel()
static java.util.ArrayList
getActivatedMods()
static java.util.ArrayList
getAllRecipes()
static java.util.List
getAllSavedPlayers()
static BaseAmbientStreamManager
getAmbientStreamManager()
static int
getButtonCount(int joypad)
static int
getCallframeTop(Coroutine c)
static float
getCameraOffX()
static float
getCameraOffY()
static IsoCell
getCell()
static java.lang.reflect.Field
getClassField(java.lang.Object o, int i)
static java.lang.Object
getClassFieldVal(java.lang.Object o, java.lang.reflect.Field field)
static java.lang.reflect.Method
getClassFunction(java.lang.Object o, int i)
static java.util.ArrayList
getConnectedPlayers()
static int
getControllerAxisCount(int c)
static float
getControllerAxisValue(int c, int axis)
static int
getControllerButtonCount(int c)
static int
getControllerCount()
static float
getControllerDeadZone(int c, int axis)
static java.lang.String
getControllerName(int joypad)
static float
getControllerPovX(int c)
static float
getControllerPovY(int c)
static Core
getCore()
static LuaCallFrame
getCoroutineCallframeStack(Coroutine c, int n)
static java.lang.Object
getCoroutineObjStack(Coroutine c, int n)
static java.lang.Object
getCoroutineObjStackWithBase(Coroutine c, int n)
static int
getCoroutineTop(Coroutine c)
static Coroutine
getCurrentCoroutine()
static java.lang.String
getCurrentUserProfileName()
static java.lang.String
getCurrentUserSteamID()
static void
getDBSchema()
static boolean
getDebug()
static IsoDirections
getDirectionTo(IsoGameCharacter chara, IsoObject objTarget)
static java.util.Stack
getEvolvedRecipes()
static java.io.DataInputStream
getFileInput(java.lang.String filename)
static java.lang.String
getFilenameOfCallframe(LuaCallFrame c)
static java.lang.String
getFilenameOfClosure(LuaClosure c)
static java.io.DataOutputStream
getFileOutput(java.lang.String filename)
static java.io.BufferedReader
getFileReader(java.lang.String filename, boolean createIfNull)
static java.lang.String
getFileSeparator()
static LuaManager.GlobalObject.LuaFileWriter
getFileWriter(java.lang.String filename, boolean createIfNull, boolean append)
static int
getFirstLineOfClosure(LuaClosure c)
static BaseSoundBank
getFMODSoundBank()
static KahluaTable
getFriendsList()
static KahluaTable
getFullSaveDirectoryTable()
static GameClient
getGameClient()
static java.io.DataInputStream
getGameFilesInput(java.lang.String filename)
static java.io.BufferedReader
getGameFilesTextInput(java.lang.String filename)
static int
getGameSpeed()
static GameTime
getGameTime()
static long
getGametimeTimestamp()
static java.lang.String
getHourMinute()
static java.lang.String
getItemText(java.lang.String txt)
static int
getJoypadAButton(int joypad)
static float
getJoypadAimingAxisX(int joypad)
static float
getJoypadAimingAxisY(int joypad)
static int
getJoypadBackButton(int joypad)
static int
getJoypadBButton(int joypad)
static int
getJoypadLBumper(int joypad)
static float
getJoypadMovementAxisX(int joypad)
static float
getJoypadMovementAxisY(int joypad)
static int
getJoypadRBumper(int joypad)
static int
getJoypadStartButton(int joypad)
static int
getJoypadXButton(int joypad)
static int
getJoypadYButton(int joypad)
static java.lang.String
getLastPlayedDate(java.lang.String filename)
static KahluaTable
getLatestSave()
static int
getLineNumber(LuaCallFrame c)
static java.lang.String
getListOfCommands(java.lang.String command)
static java.lang.String
getLoadedLua(int n)
static int
getLoadedLuaCount()
static int
getLocalVarCount(Coroutine c)
static java.lang.String
getLocalVarName(Coroutine c, int n)
static int
getLocalVarStack(Coroutine c, int n)
static java.util.ArrayList
getLotDirectories()
static KahluaTable
getMapDirectoryTable()
static java.util.ArrayList
getMapFoldersForMod(java.lang.String modID)
static KahluaTable
getMapInfo(java.lang.String mapDir)
static int
getMaxActivePlayers()
static java.lang.String
getMethodParameter(java.lang.reflect.Method o, int i)
static int
getMethodParameterCount(java.lang.reflect.Method o)
static KahluaTable
getModDirectoryTable()
static java.io.BufferedReader
getModFileReader(java.lang.String modId, java.lang.String filename, boolean createIfNull)
static LuaManager.GlobalObject.LuaFileWriter
getModFileWriter(java.lang.String modId, java.lang.String filename, boolean createIfNull, boolean append)
static ChooseGameInfo.Mod
getModInfo(java.lang.String modDir)
static ChooseGameInfo.Mod
getModInfoByID(java.lang.String modID)
static java.util.List
getMods()
static int
getMouseX()
static int
getMouseXScaled()
static int
getMouseY()
static int
getMouseYScaled()
static java.lang.String
getMyDocumentFolder()
static int
getNumActivePlayers()
static int
getNumClassFields(java.lang.Object o)
static int
getNumClassFunctions(java.lang.Object o)
static java.util.ArrayList
getOnlinePlayers()
static java.lang.String
getOnlineUsername()
static PerformanceSettings
getPerformance()
static IsoPlayer
getPlayer()
static IsoPlayer
getPlayerByOnlineID(int id)
static IsoPlayer
getPlayerFromUsername(java.lang.String username)
static int
getPlayerScreenHeight(int player)
static int
getPlayerScreenLeft(int player)
static int
getPlayerScreenTop(int player)
static int
getPlayerScreenWidth(int player)
static KahluaTable
getPublicServersList()
static RadioAPI
getRadioAPI()
static java.util.ArrayList
getRadioTranslators(Language language)
static java.lang.String
getRandomUUID()
static SpriteRenderer
getRenderer()
static LuaManager.GlobalObject.LuaFileWriter
getSandboxFileWriter(java.lang.String filename, boolean createIfNull, boolean append)
static SandboxOptions
getSandboxOptions()
static java.util.List
getSandboxPresets()
static java.util.ArrayList
getSaveDirectory(java.lang.String folder)
static KahluaTable
getSaveDirectoryTable()
static KahluaTable
getSaveInfo(java.lang.String saveDir)
static java.lang.String
getSaveName(java.io.File file)
static ScriptManager
getScriptManager()
static java.lang.String
getServerAddressFromArgs()
static KahluaTable
getServerList()
static java.lang.String
getServerListFile()
static void
getServerModData()
static java.lang.String
getServerName()
static ServerOptions
getServerOptions()
static java.lang.String
getServerPasswordFromArgs()
static ServerSettingsManager
getServerSettingsManager()
static KahluaTable
getServerSpawnRegions()
static java.lang.String
getShortenedFilename(java.lang.String str)
static SleepingEvent
getSleepingEvent()
static SLSoundManager
getSLSoundManager()
static BaseSoundManager
getSoundManager()
static IsoPlayer
getSpecificPlayer(int player)
static IsoSprite
getSprite(java.lang.String sprite)
static Texture
getSteamAvatarFromSteamID(java.lang.String steamID)
static Texture
getSteamAvatarFromUsername(java.lang.String username)
static java.lang.String
getSteamIDFromUsername(java.lang.String username)
static java.lang.Boolean
getSteamModeActive()
static java.lang.String
getSteamProfileNameFromSteamID(java.lang.String steamID)
static java.lang.String
getSteamProfileNameFromUsername(java.lang.String username)
static boolean
getSteamScoreboard()
static java.util.ArrayList
getSteamWorkshopItemIDs()
static java.util.ArrayList
getSteamWorkshopItemMods(java.lang.String itemIDStr)
static java.util.ArrayList
getSteamWorkshopStagedItems()
static java.util.List
getStories()
static KahluaTable
getStoryDirectoryTable()
static ChooseGameInfo.Story
getStoryInfo(java.lang.String storyName)
static KahluaTable
getStorySavedTable()
static void
getTableResult(java.lang.String tableName, int numberPerPages)
static java.lang.String
getText(java.lang.String txt)
static java.lang.String
getText(java.lang.String txt, java.lang.Object arg1)
static java.lang.String
getText(java.lang.String txt, java.lang.Object arg1, java.lang.Object arg2)
static java.lang.String
getText(java.lang.String txt, java.lang.Object arg1, java.lang.Object arg2, java.lang.Object arg3)
static java.lang.String
getText(java.lang.String txt, java.lang.Object arg1, java.lang.Object arg2, java.lang.Object arg3, java.lang.Object arg4)
static TextManager
getTextManager()
static java.lang.String
getTextOrNull(java.lang.String txt)
static Texture
getTexture(java.lang.String filename)
static Texture
getTextureFromSaveDir(java.lang.String filename, java.lang.String saveName)
static void
getTickets(java.lang.String author)
static long
getTimestamp()
static long
getTimestampMs()
static java.io.DataInputStream
getUrlInputStream(java.lang.String url)
static IsoWorld
getWorld()
static WorldSoundManager
getWorldSoundManager()
static ZomboidRadio
getZomboidRadio()
static IsoMetaGrid.Zone
getZone(int x, int y, int z)
static java.util.ArrayList
getZones(int x, int y, int z)
static boolean
hasBreakpoint(java.lang.String file, int line)
static boolean
hasDataBreakpoint(KahluaTable table, java.lang.Object key)
static boolean
hasDataReadBreakpoint(KahluaTable table, java.lang.Object key)
static void
initUISystem()
static InventoryItem
instanceItem(java.lang.String item)
static InventoryItem
instanceItem(Item item)
static boolean
instof(java.lang.Object obj, java.lang.String name)
static void
inviteFriend(java.lang.String steamID)
static void
InvMngGetItem(long itemId, java.lang.String itemType, IsoPlayer player)
static void
InvMngRemoveItem(long itemId, IsoPlayer player)
static boolean
is64bit()
static boolean
isAccessLevel(java.lang.String accessLevel)
static boolean
isAdmin()
static boolean
isClient()
static boolean
isCoopHost()
static boolean
isCtrlKeyDown()
static boolean
isCurrentExecutionPoint(java.lang.String file, int line)
static boolean
isDebugEnabled()
static boolean
isDemo()
static boolean
isJoypadDown(int joypad)
static boolean
isJoypadLeft(int joypad)
static boolean
isJoypadPressed(int joypad, int button)
static boolean
isJoypadRight(int joypad)
static boolean
isJoypadUp(int joypad)
static boolean
isKeyDown(int key)
static boolean
isModActive(ChooseGameInfo.Mod mod)
static boolean
isMouseButtonDown(int number)
static float
isoToScreenX(int player, float x, float y, float z)
static float
isoToScreenY(int player, float x, float y, float z)
static boolean
isPublicServerListAllowed()
static boolean
isServer()
static boolean
isShiftKeyDown()
static boolean
isSoundPlaying(java.lang.Object sound)
static boolean
isSteamOverlayEnabled()
static boolean
isType(java.lang.Object obj, java.lang.String name)
static boolean
isValidSteamID(java.lang.String s)
static boolean
isValidUserName(java.lang.String user)
static boolean
isXBOXController()
static Model
loadStaticZomboidModel(java.lang.String name, java.lang.String loc, java.lang.String tex)
static java.lang.String
localVarName(Coroutine c, int n)
static void
navigateMouseMove(int x, int y)
static void
openURl(java.lang.String url)
static void
pauseSoundAndMusic()
static void
ping(java.lang.String username, java.lang.String pwd, java.lang.String ip, java.lang.String port)
static void
querySteamWorkshopItemDetails(java.util.ArrayList itemIDs, LuaClosure functionObj, java.lang.Object arg1)
static void
rainConfig(java.lang.String cmd, int arg)
static boolean
reactivateJoypadAfterResetLua()
static void
reloadControllerConfigFiles()
static void
reloadLuaFile(java.lang.String filename)
static void
reloadServerLuaFile(java.lang.String filename)
static void
removeTicket(int ticketID)
static void
removeUserlog(java.lang.String user, java.lang.String type, java.lang.String text)
static void
renderIsoCircle(float x, float y, float z, float radius, float r, float g, float b, float a, int thickness)
static java.lang.String
replaceWith(java.lang.String toReplace, java.lang.String regex, java.lang.String by)
static void
requestTrading(IsoPlayer you, IsoPlayer other)
static void
requestUserlog(java.lang.String user)
static java.lang.Object
require(java.lang.String f)
static void
resetRegionFile()
static void
resumeSoundAndMusic()
static java.lang.String
sanitizeWorldName(java.lang.String worldName)
static void
save(boolean doCharacter)
static void
saveControllerSettings(int c)
static void
saveGame()
static void
saveModsFile()
static void
scoreboardUpdate()
void
screenZoomIn()
void
screenZoomOut()
static void
sendAdditionalPain(int onlineID, int i, float level)
void
sendAddXp(IsoPlayer player, PerkFactory.Perks perk, int amount, boolean doGlobalXP, boolean onlyGlobalXP)
static void
sendBandage(int onlineID, int i, boolean bandaged, float bandageLife, boolean isAlcoholic, java.lang.String bandageType)
static void
sendCataplasm(int onlineID, int i, float plantainFactor, float comfreyFactor, float garlicFactor)
static void
sendCleanBurn(int onlineID, int i)
static void
sendClientCommand(java.lang.String module, java.lang.String command, KahluaTable args)
static void
sendClientCommand(IsoPlayer player, java.lang.String module, java.lang.String command, KahluaTable args)
static void
SendCommandToServer(java.lang.String command)
static void
sendDisinfect(int onlineID, int i, float level)
static void
sendFactionInvite(Faction faction, IsoPlayer host, java.lang.String invited)
static boolean
sendItemListNet(IsoPlayer sender, java.util.ArrayList items, IsoPlayer receiver, java.lang.String transferID, java.lang.String custom)
static void
sendItemsInContainer(IsoObject obj)
static void
sendPersonalColor(IsoPlayer player)
static void
sendPing()
static void
sendPlayerStatsChange(IsoPlayer player)
static void
sendRemoveBullet(int onlineID, int i, int doctorLevel)
static void
sendRemoveGlass(int onlineID, int i)
static void
sendRequestInventory(IsoPlayer player)
static void
sendServerCommand(java.lang.String module, java.lang.String command, KahluaTable args)
static void
sendServerCommand(IsoPlayer player, java.lang.String module, java.lang.String command, KahluaTable args)
static void
sendSplint(int onlineID, int i, boolean doIt, float factor, java.lang.String splintItem)
static void
sendStitch(int onlineID, int i, boolean stitched, float stitchLevel)
static void
sendWorldMessage(java.lang.String message)
static void
sendWoundInfection(int onlineID, int i, boolean infected)
static void
serverConnect(java.lang.String user, java.lang.String pass, java.lang.String server, java.lang.String localIP, java.lang.String port, java.lang.String serverPassword)
static void
serverConnectCoop(java.lang.String serverSteamID)
static boolean
serverFileExists(java.lang.String filename)
static void
setActivePlayer(int id)
static void
setAdmin()
static void
setAggroTarget(int id, int x, int y)
static void
setControllerDeadZone(int c, int axis, float value)
static void
setGameSpeed(int NewSpeed)
static void
setMouseXY(int x, int y)
static void
setNavigateXY(int x, int y, boolean lshift)
static void
setPlayerJoypad(int player, int joypad, IsoPlayer playerObj, java.lang.String username)
static void
setPlayerMouse(IsoPlayer playerObj)
static void
setPlayerMovementActive(int id, boolean bActive)
static void
setProgressBarValue(IsoPlayer player, int value)
static void
setShowPausedMessage(boolean b)
static void
sledgeDestroy(IsoObject object)
static void
spawnHorde(float x, float y, float x2, float y2, float z, int count)
static boolean
spawnpointsExistsForMod(java.lang.String modID, java.lang.String mapFolder)
static Server
steamGetInternetServerDetails(int index)
static void
steamReleaseInternetServersRequest()
static int
steamRequestInternetServersCount()
static void
steamRequestInternetServersList()
static boolean
steamRequestServerDetails(java.lang.String host, int port)
static boolean
steamRequestServerRules(java.lang.String host, int port)
static void
stopPing()
static void
stopSound(long sound)
void
SyncXp(IsoPlayer player)
static java.lang.String
tabToX(java.lang.String a, int tabX)
static void
takeScreenshot()
static void
takeScreenshot(java.lang.String fileName)
static void
testHelicopter()
static void
testSound()
static void
toggleBreakOnChange(KahluaTable table, java.lang.Object key)
static void
toggleBreakOnRead(KahluaTable table, java.lang.Object key)
static void
toggleBreakpoint(java.lang.String file, int line)
static void
toggleModActive(ChooseGameInfo.Mod mod, boolean activate)
static void
toggleSafetyServer(IsoPlayer player)
static int
toInt(double val)
static void
tradingUISendAddItem(IsoPlayer you, IsoPlayer other, InventoryItem i)
static void
tradingUISendRemoveItem(IsoPlayer you, IsoPlayer other, int index)
static void
tradingUISendUpdateState(IsoPlayer you, IsoPlayer other, int state)
static KahluaTable
transformIntoKahluaTable(java.util.HashMap map)
static float
translatePointXInOverheadMapToWindow(float x, UIElement ui, float zoom, float xpos)
static float
translatePointXInOverheadMapToWorld(float x, UIElement ui, float zoom, float xpos)
static float
translatePointYInOverheadMapToWindow(float y, UIElement ui, float zoom, float ypos)
static float
translatePointYInOverheadMapToWorld(float y, UIElement ui, float zoom, float ypos)
static void
triggerEvent(java.lang.String event)
static void
triggerEvent(java.lang.String event, java.lang.Object param)
static void
triggerEvent(java.lang.String event, java.lang.Object param, java.lang.Object param2)
static void
triggerEvent(java.lang.String event, java.lang.Object param, java.lang.Object param2, java.lang.Object param3)
static void
triggerEvent(java.lang.String event, java.lang.Object param, java.lang.Object param2, java.lang.Object param3, java.lang.Object param4)
static void
updateFire()
static void
useTextureFiltering(boolean bUse)
static boolean
wasMouseActiveMoreRecentlyThanJoypad()
static void
writeLog(java.lang.String loggerName, java.lang.String logs)
static double
ZombRand(double max)
static double
ZombRand(double min, double max)
static double
ZombRandBetween(double min, double max)
static float
ZombRandFloat(float min, float max)
static void
zpopClearZombies(int cellX, int cellY)
static ZombiePopulationManager.ZombiePopulationRenderer
zpopNewRenderer()
static void
zpopSpawnNow(int cellX, int cellY)
static void
zpopSpawnTimeToZero(int cellX, int cellY)
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
GlobalObject
public GlobalObject()
-
-
Method Details
-
loadStaticZomboidModel
public static Model loadStaticZomboidModel(java.lang.String name, java.lang.String loc, java.lang.String tex) -
getSLSoundManager
-
getRadioAPI
-
getRadioTranslators
-
getZomboidRadio
-
getRandomUUID
public static java.lang.String getRandomUUID() -
sendItemListNet
-
instof
public static boolean instof(java.lang.Object obj, java.lang.String name) -
serverConnect
public static void serverConnect(java.lang.String user, java.lang.String pass, java.lang.String server, java.lang.String localIP, java.lang.String port, java.lang.String serverPassword) -
serverConnectCoop
public static void serverConnectCoop(java.lang.String serverSteamID) -
sendPing
public static void sendPing() -
forceDisconnect
public static void forceDisconnect() -
backToSinglePlayer
public static void backToSinglePlayer() -
scoreboardUpdate
public static void scoreboardUpdate() -
save
public static void save(boolean doCharacter) -
saveGame
public static void saveGame() -
getAllRecipes
public static java.util.ArrayList getAllRecipes() -
requestUserlog
public static void requestUserlog(java.lang.String user) -
addUserlog
public static void addUserlog(java.lang.String user, java.lang.String type, java.lang.String text) -
removeUserlog
public static void removeUserlog(java.lang.String user, java.lang.String type, java.lang.String text) -
tabToX
public static java.lang.String tabToX(java.lang.String a, int tabX) -
isType
public static boolean isType(java.lang.Object obj, java.lang.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) -
getAmbientStreamManager
-
getSleepingEvent
-
setPlayerMovementActive
public static void setPlayerMovementActive(int id, boolean bActive) -
setActivePlayer
public static void setActivePlayer(int id) -
getPlayer
-
getNumActivePlayers
public static int getNumActivePlayers() -
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
-
initUISystem
public static void initUISystem() -
getPerformance
-
screenZoomIn
public void screenZoomIn() -
screenZoomOut
public void screenZoomOut() -
addSound
-
sendAddXp
public void sendAddXp(IsoPlayer player, PerkFactory.Perks perk, int amount, boolean doGlobalXP, boolean onlyGlobalXP) -
SyncXp
-
getDBSchema
public static void getDBSchema() -
getTableResult
public static void getTableResult(java.lang.String tableName, int numberPerPages) -
addLevelUpPoint
-
getWorldSoundManager
-
AddWorldSound
-
AddNoiseToken
-
pauseSoundAndMusic
public static void pauseSoundAndMusic() -
resumeSoundAndMusic
public static void resumeSoundAndMusic() -
isDemo
public static boolean isDemo() -
getCurrentCoroutine
-
reloadLuaFile
public static void reloadLuaFile(java.lang.String filename) -
reloadServerLuaFile
public static void reloadServerLuaFile(java.lang.String filename) -
getServerSpawnRegions
-
getServerOptions
-
getServerName
public static java.lang.String getServerName() -
getSpecificPlayer
-
getCameraOffX
public static float getCameraOffX() -
getLatestSave
-
isCurrentExecutionPoint
public static boolean isCurrentExecutionPoint(java.lang.String file, int line) -
toggleBreakOnChange
-
isDebugEnabled
public static boolean isDebugEnabled() -
toggleBreakOnRead
-
toggleBreakpoint
public static void toggleBreakpoint(java.lang.String file, int line) -
hasDataReadBreakpoint
-
hasDataBreakpoint
-
hasBreakpoint
public static boolean hasBreakpoint(java.lang.String file, int line) -
getLoadedLuaCount
public static int getLoadedLuaCount() -
getLoadedLua
public static java.lang.String getLoadedLua(int n) -
isServer
public static boolean isServer() -
isClient
public static boolean isClient() -
canModifyPlayerStats
public static boolean canModifyPlayerStats() -
executeQuery
public static void executeQuery(java.lang.String query) -
canSeePlayerStats
public static boolean canSeePlayerStats() -
getAccessLevel
public static java.lang.String getAccessLevel() -
getOnlinePlayers
public static java.util.ArrayList getOnlinePlayers() -
getDebug
public static boolean getDebug() -
getCameraOffY
public static float getCameraOffY() -
createRegionFile
-
getMapDirectoryTable
-
deleteSave
public static void deleteSave(java.lang.String file) -
getServerAddressFromArgs
public static java.lang.String getServerAddressFromArgs() -
getServerPasswordFromArgs
public static java.lang.String getServerPasswordFromArgs() -
getServerListFile
public static java.lang.String getServerListFile() -
getServerList
-
ping
public static void ping(java.lang.String username, java.lang.String pwd, java.lang.String ip, java.lang.String port) -
stopPing
public static void stopPing() -
transformIntoKahluaTable
-
getSaveDirectory
public static java.util.ArrayList getSaveDirectory(java.lang.String folder) -
getFullSaveDirectoryTable
-
getSaveName
public static java.lang.String getSaveName(java.io.File file) -
getSaveDirectoryTable
-
getStories
public static java.util.List getStories() -
getMods
public static java.util.List getMods() -
doChallenge
-
doTutorial
-
deleteAllGameModeSaves
public static void deleteAllGameModeSaves(java.lang.String gameMode) -
sledgeDestroy
-
getTickets
public static void getTickets(java.lang.String author) -
addTicket
public static void addTicket(java.lang.String author, java.lang.String message, int ticketID) -
removeTicket
public static void removeTicket(int ticketID) -
sendFactionInvite
-
acceptFactionInvite
-
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(java.lang.String event) -
triggerEvent
public static void triggerEvent(java.lang.String event, java.lang.Object param) -
triggerEvent
public static void triggerEvent(java.lang.String event, java.lang.Object param, java.lang.Object param2) -
triggerEvent
public static void triggerEvent(java.lang.String event, java.lang.Object param, java.lang.Object param2, java.lang.Object param3) -
triggerEvent
public static void triggerEvent(java.lang.String event, java.lang.Object param, java.lang.Object param2, java.lang.Object param3, java.lang.Object param4) -
debugLuaTable
public static void debugLuaTable(java.lang.Object param, int depth) -
debugLuaTable
public static void debugLuaTable(java.lang.Object param) -
sendItemsInContainer
-
getModDirectoryTable
-
getStoryDirectoryTable
-
getModInfoByID
-
getModInfo
-
getMapFoldersForMod
public static java.util.ArrayList getMapFoldersForMod(java.lang.String modID) -
spawnpointsExistsForMod
public static boolean spawnpointsExistsForMod(java.lang.String modID, java.lang.String mapFolder) -
getFileSeparator
public static java.lang.String getFileSeparator() -
getStoryInfo
-
getStorySavedTable
-
getScriptManager
-
checkSaveFolderExists
public static boolean checkSaveFolderExists(java.lang.String f) -
getAbsoluteSaveFolderName
public static java.lang.String getAbsoluteSaveFolderName(java.lang.String f) -
checkSaveFileExists
public static boolean checkSaveFileExists(java.lang.String f) -
fileExists
public static boolean fileExists(java.lang.String filename) -
serverFileExists
public static boolean serverFileExists(java.lang.String filename) -
takeScreenshot
public static void takeScreenshot() -
takeScreenshot
public static void takeScreenshot(java.lang.String fileName) -
instanceItem
-
instanceItem
-
createNewScriptItem
public static Item createNewScriptItem(java.lang.String base, java.lang.String name, java.lang.String display, java.lang.String type, java.lang.String icon) -
cloneItemType
-
require
public static java.lang.Object require(java.lang.String f) -
getRenderer
-
getGameTime
-
getWorld
-
getCell
-
getSandboxOptions
-
getFileOutput
public static java.io.DataOutputStream getFileOutput(java.lang.String filename) -
getAllSavedPlayers
public static java.util.List getAllSavedPlayers() throws java.io.IOException- Throws:
java.io.IOException
-
getSandboxPresets
public static java.util.List getSandboxPresets() throws java.io.IOException- Throws:
java.io.IOException
-
deleteSandboxPreset
public static void deleteSandboxPreset(java.lang.String name) -
getFileReader
public static java.io.BufferedReader getFileReader(java.lang.String filename, boolean createIfNull) throws java.io.IOException- Throws:
java.io.IOException
-
getModFileReader
public static java.io.BufferedReader getModFileReader(java.lang.String modId, java.lang.String filename, boolean createIfNull) throws java.io.IOException- Throws:
java.io.IOException
-
getModFileWriter
public static LuaManager.GlobalObject.LuaFileWriter getModFileWriter(java.lang.String modId, java.lang.String filename, boolean createIfNull, boolean append) -
updateFire
public static void updateFire() -
deletePlayerSave
public static void deletePlayerSave(java.lang.String fileName) -
getControllerCount
public static int getControllerCount() -
getControllerName
public static java.lang.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) -
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) -
wasMouseActiveMoreRecentlyThanJoypad
public static boolean wasMouseActiveMoreRecentlyThanJoypad() -
reactivateJoypadAfterResetLua
public static boolean reactivateJoypadAfterResetLua() -
toInt
public static int toInt(double val) -
setPlayerJoypad
public static void setPlayerJoypad(int player, int joypad, IsoPlayer playerObj, java.lang.String username) -
setPlayerMouse
-
isJoypadUp
public static boolean isJoypadUp(int joypad) -
isJoypadLeft
public static boolean isJoypadLeft(int joypad) -
isJoypadRight
public static boolean isJoypadRight(int joypad) -
getButtonCount
public static int getButtonCount(int joypad) -
getFileWriter
public static LuaManager.GlobalObject.LuaFileWriter getFileWriter(java.lang.String filename, boolean createIfNull, boolean append) -
getSandboxFileWriter
public static LuaManager.GlobalObject.LuaFileWriter getSandboxFileWriter(java.lang.String filename, boolean createIfNull, boolean append) -
createStory
public static void createStory(java.lang.String storyName) -
createWorld
public static void createWorld(java.lang.String worldName) -
sanitizeWorldName
public static java.lang.String sanitizeWorldName(java.lang.String worldName) -
forceChangeState
-
endFileOutput
public static void endFileOutput() -
getFileInput
public static java.io.DataInputStream getFileInput(java.lang.String filename) throws java.io.IOException- Throws:
java.io.IOException
-
getGameFilesInput
public static java.io.DataInputStream getGameFilesInput(java.lang.String filename) -
getGameFilesTextInput
public static java.io.BufferedReader getGameFilesTextInput(java.lang.String filename) -
endTextFileInput
public static void endTextFileInput() -
endFileInput
public static void endFileInput() -
getLineNumber
-
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 java.lang.String getShortenedFilename(java.lang.String str) -
isKeyDown
public static boolean isKeyDown(int key) -
getFMODSoundBank
-
isSoundPlaying
public static boolean isSoundPlaying(java.lang.Object sound) -
stopSound
public static void stopSound(long sound) -
isShiftKeyDown
public static boolean isShiftKeyDown() -
isCtrlKeyDown
public static boolean isCtrlKeyDown() -
getCore
-
setShowPausedMessage
public static void setShowPausedMessage(boolean b) -
setGameSpeed
public static void setGameSpeed(int NewSpeed) -
getFilenameOfCallframe
-
getFilenameOfClosure
-
getFirstLineOfClosure
-
getLocalVarCount
-
isModActive
-
openURl
public static void openURl(java.lang.String url) -
getActivatedMods
public static java.util.ArrayList getActivatedMods() -
toggleModActive
-
saveModsFile
public static void saveModsFile() -
getLocalVarName
-
getLocalVarStack
-
getCallframeTop
-
getCoroutineTop
-
getCoroutineObjStack
-
getCoroutineObjStackWithBase
-
localVarName
-
getCoroutineCallframeStack
-
createTile
-
getNumClassFunctions
public static int getNumClassFunctions(java.lang.Object o) -
getClassFunction
public static java.lang.reflect.Method getClassFunction(java.lang.Object o, int i) -
getNumClassFields
public static int getNumClassFields(java.lang.Object o) -
getClassField
public static java.lang.reflect.Field getClassField(java.lang.Object o, int i) -
getDirectionTo
-
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
-
assaultPlayer
public static void assaultPlayer() -
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) -
setAggroTarget
public static void setAggroTarget(int id, int x, int y) -
getClassFieldVal
public static java.lang.Object getClassFieldVal(java.lang.Object o, java.lang.reflect.Field field) -
getMethodParameter
public static java.lang.String getMethodParameter(java.lang.reflect.Method o, int i) -
getMethodParameterCount
public static int getMethodParameterCount(java.lang.reflect.Method o) -
breakpoint
public static void breakpoint() -
getGameSpeed
public static int getGameSpeed() -
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
-
getLastPlayedDate
public static java.lang.String getLastPlayedDate(java.lang.String filename) -
getTextureFromSaveDir
-
getSaveInfo
-
getMapInfo
-
getLotDirectories
public static java.util.ArrayList getLotDirectories() -
useTextureFiltering
public static void useTextureFiltering(boolean bUse) -
getTexture
-
getTextManager
-
setProgressBarValue
-
getText
public static java.lang.String getText(java.lang.String txt) -
getText
public static java.lang.String getText(java.lang.String txt, java.lang.Object arg1) -
getText
public static java.lang.String getText(java.lang.String txt, java.lang.Object arg1, java.lang.Object arg2) -
getText
public static java.lang.String getText(java.lang.String txt, java.lang.Object arg1, java.lang.Object arg2, java.lang.Object arg3) -
getText
public static java.lang.String getText(java.lang.String txt, java.lang.Object arg1, java.lang.Object arg2, java.lang.Object arg3, java.lang.Object arg4) -
getTextOrNull
public static java.lang.String getTextOrNull(java.lang.String txt) -
getItemText
public static java.lang.String getItemText(java.lang.String txt) -
getMyDocumentFolder
public static java.lang.String getMyDocumentFolder() -
getSprite
-
getServerModData
public static void getServerModData() -
isXBOXController
public static boolean isXBOXController() -
getListOfCommands
public static java.lang.String getListOfCommands(java.lang.String command) -
sendClientCommand
public static void sendClientCommand(java.lang.String module, java.lang.String command, KahluaTable args) -
sendClientCommand
public static void sendClientCommand(IsoPlayer player, java.lang.String module, java.lang.String command, KahluaTable args) -
sendServerCommand
public static void sendServerCommand(java.lang.String module, java.lang.String command, KahluaTable args) -
sendServerCommand
public static void sendServerCommand(IsoPlayer player, java.lang.String module, java.lang.String command, KahluaTable args) -
sendWorldMessage
public static void sendWorldMessage(java.lang.String message) -
getOnlineUsername
public static java.lang.String getOnlineUsername() -
isValidUserName
public static boolean isValidUserName(java.lang.String user) -
getHourMinute
public static java.lang.String getHourMinute() -
SendCommandToServer
public static void SendCommandToServer(java.lang.String command) -
isAdmin
public static boolean isAdmin() -
canModifyPlayerScoreboard
public static boolean canModifyPlayerScoreboard() -
isAccessLevel
public static boolean isAccessLevel(java.lang.String accessLevel) -
sendBandage
public static void sendBandage(int onlineID, int i, boolean bandaged, float bandageLife, boolean isAlcoholic, java.lang.String bandageType) -
sendCataplasm
public static void sendCataplasm(int onlineID, int i, float plantainFactor, float comfreyFactor, float garlicFactor) -
sendStitch
public static void sendStitch(int onlineID, int i, boolean stitched, float stitchLevel) -
sendWoundInfection
public static void sendWoundInfection(int onlineID, int i, boolean infected) -
sendDisinfect
public static void sendDisinfect(int onlineID, int i, float level) -
sendSplint
public static void sendSplint(int onlineID, int i, boolean doIt, float factor, java.lang.String splintItem) -
sendAdditionalPain
public static void sendAdditionalPain(int onlineID, int i, float level) -
sendRemoveGlass
public static void sendRemoveGlass(int onlineID, int i) -
sendRemoveBullet
public static void sendRemoveBullet(int onlineID, int i, int doctorLevel) -
sendCleanBurn
public static void sendCleanBurn(int onlineID, int i) -
getGameClient
-
sendRequestInventory
-
InvMngGetItem
-
InvMngRemoveItem
-
getConnectedPlayers
public static java.util.ArrayList getConnectedPlayers() -
getPlayerFromUsername
-
isCoopHost
public static boolean isCoopHost() -
setAdmin
public static void setAdmin() -
addWarningPoint
public static void addWarningPoint(java.lang.String user, java.lang.String reason, int amount) -
toggleSafetyServer
-
disconnect
public static void disconnect() -
writeLog
public static void writeLog(java.lang.String loggerName, java.lang.String logs) -
doKeyPress
public static void doKeyPress(boolean doIt) -
getEvolvedRecipes
public static java.util.Stack getEvolvedRecipes() -
getZone
-
getZones
public static java.util.ArrayList getZones(int x, int y, int z) -
replaceWith
public static java.lang.String replaceWith(java.lang.String toReplace, java.lang.String regex, java.lang.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(java.lang.String steamID) -
getFriendsList
-
getSteamModeActive
public static java.lang.Boolean getSteamModeActive() -
isValidSteamID
public static boolean isValidSteamID(java.lang.String s) -
getCurrentUserSteamID
public static java.lang.String getCurrentUserSteamID() -
getCurrentUserProfileName
public static java.lang.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(java.lang.String itemID) -
activateSteamOverlayToWebPage
public static void activateSteamOverlayToWebPage(java.lang.String url) -
getSteamProfileNameFromSteamID
public static java.lang.String getSteamProfileNameFromSteamID(java.lang.String steamID) -
getSteamAvatarFromSteamID
-
getSteamIDFromUsername
public static java.lang.String getSteamIDFromUsername(java.lang.String username) -
resetRegionFile
public static void resetRegionFile() -
getSteamProfileNameFromUsername
public static java.lang.String getSteamProfileNameFromUsername(java.lang.String username) -
getSteamAvatarFromUsername
-
getSteamWorkshopStagedItems
public static java.util.ArrayList getSteamWorkshopStagedItems() -
getSteamWorkshopItemIDs
public static java.util.ArrayList getSteamWorkshopItemIDs() -
getSteamWorkshopItemMods
public static java.util.ArrayList getSteamWorkshopItemMods(java.lang.String itemIDStr) -
sendPlayerStatsChange
-
sendPersonalColor
-
requestTrading
-
acceptTrading
-
tradingUISendAddItem
-
tradingUISendRemoveItem
-
tradingUISendUpdateState
-
querySteamWorkshopItemDetails
public static void querySteamWorkshopItemDetails(java.util.ArrayList itemIDs, LuaClosure functionObj, java.lang.Object arg1) -
connectToServerStateCallback
public static void connectToServerStateCallback(java.lang.String button) -
getPublicServersList
-
steamRequestInternetServersList
public static void steamRequestInternetServersList() -
steamReleaseInternetServersRequest
public static void steamReleaseInternetServersRequest() -
steamRequestInternetServersCount
public static int steamRequestInternetServersCount() -
steamGetInternetServerDetails
-
steamRequestServerRules
public static boolean steamRequestServerRules(java.lang.String host, int port) -
steamRequestServerDetails
public static boolean steamRequestServerDetails(java.lang.String host, int port) -
isPublicServerListAllowed
public static boolean isPublicServerListAllowed() -
is64bit
public static boolean is64bit() -
testSound
public static void testSound() -
copyTable
-
getUrlInputStream
public static java.io.DataInputStream getUrlInputStream(java.lang.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() -
getServerSettingsManager
-
rainConfig
public static void rainConfig(java.lang.String cmd, int arg)
-