Package zombie
Class GameWindow
java.lang.Object
zombie.GameWindow
public class GameWindow
extends java.lang.Object
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
GameWindow.OSValidator
-
Field Summary
Fields Modifier and Type Field Description static JoypadManager.Joypad
ActivatedJoyPad
static int
ActiveController
static double
average10
static float
averageFPS
static boolean
bDrawMouse
static boolean
bFlipXY
static boolean
bServerDisconnected
static boolean
closeRequested
static boolean
DEBUG_SAVE
static LineDrawer
debugLine
static boolean
DoFrame
static boolean
DrawReloadingLua
static boolean
flipX
static boolean
flipY
static java.lang.String
GAME_TITLE
static Input
GameInput
static java.lang.String
kickReason
static java.lang.String
lastK
static java.lang.String
lastP
static java.lang.String
lastU
static java.lang.String
LeftRight
static java.lang.String
LeftRightR
static boolean
OkToSaveOnExit
static GameStateMachine
states
static java.lang.String
TriggerL
static java.lang.String
UpDown
static java.lang.String
UpDownR
static java.lang.String
version
static int
XLAxis
static int
XRAxis
static int
YLAxis
static int
YRAxis
-
Constructor Summary
Constructors Constructor Description GameWindow()
-
Method Summary
Modifier and Type Method Description static void
copyFolder(java.io.File source, java.io.File destination)
static java.lang.String
copySaveDir(java.lang.String username)
static void
DoLoadingText(java.lang.String text)
static void
doRenderEvent(boolean b)
static java.lang.String
getCacheDir()
static java.lang.String
getCoopServerHome()
int
getDelta()
static java.lang.String
getGameModeCacheDir()
static java.lang.String
getSaveDir()
static java.lang.String
getScreenshotDir()
static long
getTime()
static void
initApplet()
static void
initShared()
static void
initSharedServer()
Deprecated.static TexturePackPage
LoadTexturePack(java.lang.String pack)
static void
LoadTexturePackDDS(java.lang.String pack)
static void
logic()
static void
maina(boolean fullscreen, int xres, int yres, int graphiclevel)
static void
mainaa(java.lang.String[] args)
static void
mainServer()
static int
readInt(java.io.DataInputStream in)
static long
readLong(java.io.DataInputStream in)
static java.lang.String
ReadString(java.io.DataInputStream input)
static java.lang.String
ReadString(java.nio.ByteBuffer input)
static java.lang.String
ReadStringUTF(java.nio.ByteBuffer input)
static void
render()
static void
run()
static void
runserver()
static void
save(boolean bDoChars)
static void
save(boolean bDoChars, boolean bDrawSaving)
static void
savePlayer()
static void
setCacheDir(java.lang.String dir)
static void
start()
static void
updateFPS(long timeDiff)
static void
WriteString(java.io.DataOutputStream output, java.lang.String str)
static void
WriteString(java.nio.ByteBuffer output, java.lang.String str)
static void
WriteStringUTF(java.nio.ByteBuffer output, java.lang.String str)
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
GameInput
-
ActiveController
public static int ActiveController -
XLAxis
public static int XLAxis -
YLAxis
public static int YLAxis -
XRAxis
public static int XRAxis -
YRAxis
public static int YRAxis -
flipX
public static boolean flipX -
flipY
public static boolean flipY -
bFlipXY
public static boolean bFlipXY -
DEBUG_SAVE
public static boolean DEBUG_SAVE -
OkToSaveOnExit
public static boolean OkToSaveOnExit -
lastU
public static java.lang.String lastU -
lastP
public static java.lang.String lastP -
lastK
public static java.lang.String lastK -
GAME_TITLE
public static final java.lang.String GAME_TITLE- See Also:
- Constant Field Values
-
states
-
debugLine
-
bDrawMouse
public static boolean bDrawMouse -
bServerDisconnected
public static boolean bServerDisconnected -
kickReason
public static java.lang.String kickReason -
DrawReloadingLua
public static boolean DrawReloadingLua -
ActivatedJoyPad
-
DoFrame
public static boolean DoFrame -
version
public static java.lang.String version -
UpDownR
public static java.lang.String UpDownR -
LeftRightR
public static java.lang.String LeftRightR -
UpDown
public static java.lang.String UpDown -
LeftRight
public static java.lang.String LeftRight -
TriggerL
public static java.lang.String TriggerL -
average10
public static double average10 -
closeRequested
public static volatile boolean closeRequested -
averageFPS
public static float averageFPS
-
-
Constructor Details
-
GameWindow
public GameWindow()
-
-
Method Details
-
initApplet
public static void initApplet() throws java.lang.Exception- Throws:
java.lang.Exception
-
logic
public static void logic() -
render
public static void render() -
mainServer
public static void mainServer() -
mainaa
public static void mainaa(java.lang.String[] args) throws java.lang.Exception- Throws:
java.lang.Exception
-
maina
public static void maina(boolean fullscreen, int xres, int yres, int graphiclevel) throws java.lang.Exception- Throws:
java.lang.Exception
-
getTime
public static long getTime() -
getDelta
public int getDelta() -
start
public static void start() -
updateFPS
public static void updateFPS(long timeDiff) -
readLong
public static long readLong(java.io.DataInputStream in) throws java.io.EOFException, java.io.IOException- Throws:
java.io.EOFException
java.io.IOException
-
readInt
public static int readInt(java.io.DataInputStream in) throws java.io.EOFException, java.io.IOException- Throws:
java.io.EOFException
java.io.IOException
-
run
public static void run() -
runserver
public static void runserver() -
LoadTexturePack
-
LoadTexturePackDDS
public static void LoadTexturePackDDS(java.lang.String pack) -
save
public static void save(boolean bDoChars) throws java.io.FileNotFoundException, java.io.IOException- Throws:
java.io.FileNotFoundException
java.io.IOException
-
savePlayer
public static void savePlayer() -
save
public static void save(boolean bDoChars, boolean bDrawSaving) throws java.io.FileNotFoundException, java.io.IOException- Throws:
java.io.FileNotFoundException
java.io.IOException
-
setCacheDir
public static void setCacheDir(java.lang.String dir) -
getCacheDir
public static java.lang.String getCacheDir() -
getSaveDir
public static java.lang.String getSaveDir() -
getCoopServerHome
public static java.lang.String getCoopServerHome() -
WriteString
public static void WriteString(java.nio.ByteBuffer output, java.lang.String str) -
WriteStringUTF
public static void WriteStringUTF(java.nio.ByteBuffer output, java.lang.String str) -
WriteString
public static void WriteString(java.io.DataOutputStream output, java.lang.String str) throws java.io.IOException- Throws:
java.io.IOException
-
ReadStringUTF
public static java.lang.String ReadStringUTF(java.nio.ByteBuffer input) -
ReadString
public static java.lang.String ReadString(java.nio.ByteBuffer input) -
ReadString
public static java.lang.String ReadString(java.io.DataInputStream input) throws java.io.IOException- Throws:
java.io.IOException
-
getGameModeCacheDir
public static java.lang.String getGameModeCacheDir() -
getScreenshotDir
public static java.lang.String getScreenshotDir() -
doRenderEvent
public static void doRenderEvent(boolean b) -
DoLoadingText
public static void DoLoadingText(java.lang.String text) -
copyFolder
public static void copyFolder(java.io.File source, java.io.File destination) throws java.io.IOException- Throws:
java.io.IOException
-
copySaveDir
public static java.lang.String copySaveDir(java.lang.String username)
-