Package zombie.gameStates
Class IngameState
java.lang.Object
zombie.gameStates.GameState
zombie.gameStates.IngameState
public class IngameState extends GameState
-
Field Summary
Fields Modifier and Type Field Description static boolean
AlwaysDebugPathfinding
int
AutoTestCounter
static boolean
DebugPathfinding
static float
drawh
static float
draww
static java.util.ArrayList
Frames
static java.lang.Long
GameID
static IngameState
instance
long
numberTicks
boolean
Paused
float
SaveDelay
static int
WaitMul
-
Constructor Summary
Constructors Constructor Description IngameState()
-
Method Summary
Modifier and Type Method Description static void
copyDirectory(java.io.File sourceLocation, java.io.File targetLocation)
static void
copyWorld(java.lang.String src, java.lang.String dest)
static void
createWorld(java.lang.String worldName)
void
enter()
void
exit()
void
FadeIn(int seconds)
void
FadeOut(int seconds)
static float
invTranslatePointX(float x, float camX, float zoom, float offx)
static float
invTranslatePointY(float y, float camY, float zoom, float offy)
GameState
redirectState()
void
reenter()
void
render()
static void
renderDebugOverhead(IsoCell cell, int drawFloor, int tilew, int offx, int offy)
static void
renderDebugOverhead2(IsoCell cell, int drawFloor, float zoom, int offx, int offy, float xPos, float yPos, int draww, int drawh)
void
renderframe(int nPlayer)
void
renderframetext(int nPlayer)
void
renderframeui()
static void
renderLine(float x1, float y1, float x2, float y2, float r, float g, float b, float a)
static void
renderRect(float x, float y, float w, float h, float r, float g, float b, float a)
void
StartMusic()
void
StartMusic(java.lang.String filename)
static float
translatePointX(float x)
static float
translatePointX(float x, float camX, float zoom, float offx)
static float
translatePointY(float y)
static float
translatePointY(float y, float camY, float zoom, float offy)
GameStateMachine.StateAction
update()
void
UpdateStuff()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
DebugPathfinding
public static boolean DebugPathfinding -
AlwaysDebugPathfinding
public static boolean AlwaysDebugPathfinding -
WaitMul
public static int WaitMul -
instance
-
numberTicks
public long numberTicks -
Paused
public boolean Paused -
SaveDelay
public float SaveDelay -
draww
public static float draww -
drawh
public static float drawh -
GameID
public static java.lang.Long GameID -
AutoTestCounter
public int AutoTestCounter -
Frames
public static java.util.ArrayList Frames
-
-
Constructor Details
-
IngameState
public IngameState()
-
-
Method Details
-
renderDebugOverhead
-
translatePointX
public static float translatePointX(float x, float camX, float zoom, float offx) -
invTranslatePointX
public static float invTranslatePointX(float x, float camX, float zoom, float offx) -
invTranslatePointY
public static float invTranslatePointY(float y, float camY, float zoom, float offy) -
translatePointY
public static float translatePointY(float y, float camY, float zoom, float offy) -
translatePointX
public static float translatePointX(float x) -
translatePointY
public static float translatePointY(float y) -
renderRect
public static void renderRect(float x, float y, float w, float h, float r, float g, float b, float a) -
renderLine
public static void renderLine(float x1, float y1, float x2, float y2, float r, float g, float b, float a) -
renderDebugOverhead2
public static void renderDebugOverhead2(IsoCell cell, int drawFloor, float zoom, int offx, int offy, float xPos, float yPos, int draww, int drawh) -
UpdateStuff
public void UpdateStuff() -
enter
public void enter() -
exit
public void exit() -
redirectState
- Overrides:
redirectState
in classGameState
-
reenter
public void reenter() -
FadeIn
public void FadeIn(int seconds) -
FadeOut
public void FadeOut(int seconds) -
renderframetext
public void renderframetext(int nPlayer) -
renderframe
public void renderframe(int nPlayer) -
renderframeui
public void renderframeui() -
render
public void render() -
StartMusic
public void StartMusic() -
StartMusic
public void StartMusic(java.lang.String filename) -
update
-
copyWorld
public static void copyWorld(java.lang.String src, java.lang.String dest) -
copyDirectory
public static void copyDirectory(java.io.File sourceLocation, java.io.File targetLocation) throws java.io.IOException- Throws:
java.io.IOException
-
createWorld
public static void createWorld(java.lang.String worldName)
-