zombie
Class GameWindow
java.lang.Object
zombie.GameWindow
public class GameWindow
- extends java.lang.Object
Method Summary |
static void |
DrawDebugLine(int x1,
int x2,
int y1,
int y2)
|
static java.lang.String |
getCacheDir()
|
int |
getDelta()
|
static java.lang.String |
getGameModeCacheDir()
|
static java.lang.String |
getScreenshotDir()
|
static long |
getTime()
|
static void |
initApplet()
|
static void |
initShared()
|
static void |
initSharedServer()
|
static void |
LoadTexturePack(java.lang.String pack)
|
static void |
LoadTexturePackDDS(java.lang.String pack)
|
static void |
logic()
Do all calculations, handle input, etc. |
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 java.lang.String |
ReadString(java.nio.ByteBuffer input)
|
static java.lang.String |
ReadString(java.io.DataInputStream input)
|
static void |
render()
Render the current frame |
static void |
run()
Runs the game (the "main loop") |
static void |
runserver()
|
static void |
save(boolean bDoChars)
|
static void |
save(boolean bDoChars,
boolean bDrawSaving)
|
static void |
start()
|
static void |
updateFPS()
|
static void |
WriteString(java.nio.ByteBuffer output,
java.lang.String str)
|
static void |
WriteString(java.io.DataOutputStream output,
java.lang.String str)
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GameInput
public static Input 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
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
- Game title
- See Also:
- Constant Field Values
states
public static GameStateMachine states
CharacterCreationStateHandle
public static CharacterCreationState CharacterCreationStateHandle
debugLine
public static LineDrawer debugLine
bDrawMouse
public static boolean bDrawMouse
ActivatedJoyPad
public static boolean 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
SoundEngine
public static SoundEngine SoundEngine
average10
public static float average10
closeRequested
public static volatile boolean closeRequested
GameWindow
public GameWindow()
DrawDebugLine
public static void DrawDebugLine(int x1,
int x2,
int y1,
int y2)
initApplet
public static void initApplet()
throws java.lang.Exception
- Throws:
java.lang.Exception
initShared
public static void initShared()
throws java.lang.Exception
- Throws:
java.lang.Exception
initSharedServer
public static void initSharedServer()
throws java.lang.Exception
- Throws:
java.lang.Exception
logic
public static void logic()
- Do all calculations, handle input, etc.
render
public static void render()
- Render the current frame
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()
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()
- Runs the game (the "main loop")
runserver
public static void runserver()
LoadTexturePack
public static void LoadTexturePack(java.lang.String pack)
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
save
public static void save(boolean bDoChars,
boolean bDrawSaving)
throws java.io.FileNotFoundException,
java.io.IOException
- Throws:
java.io.FileNotFoundException
java.io.IOException
getCacheDir
public static java.lang.String getCacheDir()
WriteString
public static void WriteString(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
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()