zombie.core
Class Core

java.lang.Object
  extended by zombie.core.Core

public class Core
extends java.lang.Object

Author:
LEMMY

Field Summary
static boolean bAltMoveMethod
           
static boolean bDebug
           
static boolean bDoubleSize
           
static boolean bLastStand
           
 boolean bSupportsFBO
           
 boolean bUseShaders
           
 Vector2[] CircleVecs
           
static UITextBox2 CurrentTextEntryBox
           
static boolean DoFiltering
           
 int fileversion
           
static java.lang.String GameMap
           
static java.lang.String GameMode
           
static java.lang.String GameSaveWorld
           
 int lastHeight
           
 int lastWidth
           
static int MaxJukeBoxesActive
           
static java.lang.String modRootDirectory
           
 int nGraphicLevel
           
static int NumJukeBoxesActive
           
 Shader RenderShader
           
static boolean SafeMode
           
static java.lang.String storyDirectory
           
static java.lang.String SUN_JAVA_COMMAND
          Sun property pointing the main class and its arguments.
static boolean useLwjgl
           
 int version
           
 java.lang.String versionNumber
           
 int vidMem
           
static float Zoom
           
 
Constructor Summary
Core()
           
 
Method Summary
 void addKeyBinding(java.lang.String keyName, java.lang.Integer key)
           
 void CalcCircle()
           
 void DoEndFrameStuff(int w, int h)
           
 void DoStartFrameStuff(int w, int h)
           
 void doubleSizeToggle()
           
 void DrawCircle(float rad, float x, float y)
           
 void EndFrame()
           
 void EndFrame(int nPlayer)
           
 void EndFrameUI()
           
static int[] flipPixels(int[] imgPixels, int imgw, int imgh)
           
 java.lang.String getGameMode()
           
static int getGLMajorVersion()
           
static java.lang.String getGLVersion()
           
static Core getInstance()
           
 int getKey(java.lang.String keyName)
           
 java.util.Map<java.lang.String,java.lang.Integer> getKeyMaps()
           
 TextureFBO getOffscreenBuffer()
           
 TextureFBO getOffscreenBuffer(int nPlayer)
           
 int getOffscreenHeight()
           
 int getOffscreenWidth()
           
static void getOpenGLVersions()
           
 int getScreenHeight()
           
 se.krka.kahlua.vm.KahluaTable getScreenModes()
           
 int getScreenWidth()
           
 boolean getUseShaders()
           
 java.lang.String getVersionNumber()
           
 int getVidMem()
           
 void init(int width, int height)
           
 void init(int width, int height, int offscreenwidth, int offscreenheight, java.awt.Canvas canvas, java.awt.Canvas full)
           
 boolean isDedicated()
           
 boolean isFullScreen()
           
static boolean isLastStand()
           
 boolean loadDisplayModeFile()
           
 boolean loadedShader()
           
 void MoveMethodToggle()
           
 void quit()
           
 void reinitKeyMaps()
           
static void restartApplication(java.lang.Runnable runBeforeRestart)
          Restart the current Java application
static void setDisplayMode(int width, int height, boolean fullscreen)
           
 void setForceScreenSize()
           
static void setFullScreen(boolean bool)
           
 void setKeyMaps(java.util.Map<java.lang.String,java.lang.Integer> keyMaps)
           
 void setResolution(java.lang.String res)
          Set the display mode to be used
 void setScreenSize(int width, int height)
           
 void setUseShaders(boolean bUse)
           
 void setVidMem(int mem)
           
 void setWindowed(boolean b)
           
 void StartFrame()
           
 void StartFrame(int nPlayer)
           
 void StartFrameUI()
           
static boolean supportCompressedTextures()
           
static boolean supportNPTTexture()
           
 boolean supportsFBO()
           
 void TakeFullScreenshot()
           
 void TakeScreenshot()
           
static void UnfocusActiveTextEntryBox()
           
 void updateDisplayModeFile()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

bDoubleSize

public static boolean bDoubleSize

bAltMoveMethod

public static boolean bAltMoveMethod

versionNumber

public java.lang.String versionNumber

Zoom

public static float Zoom

useLwjgl

public static boolean useLwjgl

DoFiltering

public static boolean DoFiltering

MaxJukeBoxesActive

public static int MaxJukeBoxesActive

NumJukeBoxesActive

public static int NumJukeBoxesActive

GameMode

public static java.lang.String GameMode

bDebug

public static boolean bDebug

lastHeight

public int lastHeight

lastWidth

public int lastWidth

CurrentTextEntryBox

public static UITextBox2 CurrentTextEntryBox

storyDirectory

public static java.lang.String storyDirectory

modRootDirectory

public static java.lang.String modRootDirectory

RenderShader

public Shader RenderShader

bUseShaders

public boolean bUseShaders

vidMem

public int vidMem

nGraphicLevel

public int nGraphicLevel

bSupportsFBO

public boolean bSupportsFBO

CircleVecs

public Vector2[] CircleVecs

version

public int version

fileversion

public int fileversion

SUN_JAVA_COMMAND

public static final java.lang.String SUN_JAVA_COMMAND
Sun property pointing the main class and its arguments. Might not be defined on non Hotspot VM implementations.

See Also:
Constant Field Values

GameMap

public static java.lang.String GameMap

GameSaveWorld

public static java.lang.String GameSaveWorld

SafeMode

public static boolean SafeMode

bLastStand

public static boolean bLastStand
Constructor Detail

Core

public Core()
Method Detail

loadedShader

public boolean loadedShader()

getGLMajorVersion

public static int getGLMajorVersion()

isDedicated

public boolean isDedicated()

getUseShaders

public boolean getUseShaders()

getVidMem

public int getVidMem()

setVidMem

public void setVidMem(int mem)

setUseShaders

public void setUseShaders(boolean bUse)

getGLVersion

public static java.lang.String getGLVersion()

getGameMode

public java.lang.String getGameMode()

getInstance

public static Core getInstance()

getOpenGLVersions

public static void getOpenGLVersions()

setFullScreen

public static void setFullScreen(boolean bool)
                          throws org.lwjgl.LWJGLException
Throws:
org.lwjgl.LWJGLException

flipPixels

public static int[] flipPixels(int[] imgPixels,
                               int imgw,
                               int imgh)

TakeScreenshot

public void TakeScreenshot()

TakeFullScreenshot

public void TakeFullScreenshot()

supportNPTTexture

public static boolean supportNPTTexture()

supportsFBO

public boolean supportsFBO()

MoveMethodToggle

public void MoveMethodToggle()

doubleSizeToggle

public void doubleSizeToggle()

EndFrame

public void EndFrame(int nPlayer)

EndFrame

public void EndFrame()

CalcCircle

public void CalcCircle()

DrawCircle

public void DrawCircle(float rad,
                       float x,
                       float y)

EndFrameUI

public void EndFrameUI()

UnfocusActiveTextEntryBox

public static void UnfocusActiveTextEntryBox()

getOffscreenHeight

public int getOffscreenHeight()

getOffscreenWidth

public int getOffscreenWidth()

getScreenHeight

public int getScreenHeight()

getScreenWidth

public int getScreenWidth()

setResolution

public void setResolution(java.lang.String res)
Set the display mode to be used

Parameters:
width - The width of the display required
height - The height of the display required
fullscreen - True if we want fullscreen mode

loadDisplayModeFile

public boolean loadDisplayModeFile()
                            throws java.io.IOException
Throws:
java.io.IOException

updateDisplayModeFile

public void updateDisplayModeFile()
                           throws java.io.IOException
Throws:
java.io.IOException

setWindowed

public void setWindowed(boolean b)

isFullScreen

public boolean isFullScreen()

restartApplication

public static void restartApplication(java.lang.Runnable runBeforeRestart)
                               throws java.io.IOException
Restart the current Java application

Parameters:
runBeforeRestart - some custom code to be run before restarting
Throws:
java.io.IOException

getScreenModes

public se.krka.kahlua.vm.KahluaTable getScreenModes()

setDisplayMode

public static void setDisplayMode(int width,
                                  int height,
                                  boolean fullscreen)

quit

public void quit()

init

public void init(int width,
                 int height)
          throws org.lwjgl.LWJGLException
Throws:
org.lwjgl.LWJGLException

init

public void init(int width,
                 int height,
                 int offscreenwidth,
                 int offscreenheight,
                 java.awt.Canvas canvas,
                 java.awt.Canvas full)
          throws org.lwjgl.LWJGLException
Throws:
org.lwjgl.LWJGLException

setScreenSize

public void setScreenSize(int width,
                          int height)

setForceScreenSize

public void setForceScreenSize()

supportCompressedTextures

public static boolean supportCompressedTextures()

StartFrame

public void StartFrame()

StartFrame

public void StartFrame(int nPlayer)

getOffscreenBuffer

public TextureFBO getOffscreenBuffer()

getOffscreenBuffer

public TextureFBO getOffscreenBuffer(int nPlayer)

DoStartFrameStuff

public void DoStartFrameStuff(int w,
                              int h)

DoEndFrameStuff

public void DoEndFrameStuff(int w,
                            int h)

StartFrameUI

public void StartFrameUI()

getKeyMaps

public java.util.Map<java.lang.String,java.lang.Integer> getKeyMaps()

setKeyMaps

public void setKeyMaps(java.util.Map<java.lang.String,java.lang.Integer> keyMaps)

reinitKeyMaps

public void reinitKeyMaps()

getKey

public int getKey(java.lang.String keyName)

addKeyBinding

public void addKeyBinding(java.lang.String keyName,
                          java.lang.Integer key)

isLastStand

public static boolean isLastStand()

getVersionNumber

public java.lang.String getVersionNumber()