Package zombie.gameStates
Class MainScreenState
java.lang.Object
zombie.gameStates.GameState
zombie.gameStates.MainScreenState
public class MainScreenState extends GameState
-
Nested Class Summary
Nested Classes Modifier and Type Class Description class
MainScreenState.Credit
static class
MainScreenState.ScreenElement
-
Field Summary
Fields Modifier and Type Field Description float
alpha
float
alphaStep
static Audio
ambient
int
creditID
java.util.ArrayList
Credits
java.util.ArrayList
Elements
static MainScreenState
instance
int
lightningCount
float
lightningDelta
int
lightningFullTimer
float
lightningTargetDelta
int
lightOffCount
static Audio
musicTrack
boolean
showLogo
float
targetAlpha
static float
totalScale
static java.lang.String
Version
-
Constructor Summary
Constructors Constructor Description MainScreenState()
-
Method Summary
Modifier and Type Method Description static java.nio.ByteBuffer
convertToByteBuffer(java.awt.image.BufferedImage image)
static void
DrawTexture(Texture tex, int x, int y, int width, int height, float alpha)
static void
DrawTexture(Texture tex, int x, int y, int width, int height, Color col)
void
enter()
void
exit()
static MainScreenState
getInstance()
static java.nio.ByteBuffer[]
loadIcons()
static void
main(java.lang.String[] args)
GameState
redirectState()
void
render()
void
setConnectToServerState(ConnectToServerState state)
boolean
ShouldShowLogo()
GameStateMachine.StateAction
update()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
Version
public static java.lang.String Version -
ambient
-
musicTrack
-
totalScale
public static float totalScale -
alpha
public float alpha -
alphaStep
public float alphaStep -
creditID
public int creditID -
Credits
public java.util.ArrayList Credits -
Elements
public java.util.ArrayList Elements -
targetAlpha
public float targetAlpha -
instance
-
showLogo
public boolean showLogo -
lightningDelta
public float lightningDelta -
lightningTargetDelta
public float lightningTargetDelta -
lightningFullTimer
public int lightningFullTimer -
lightningCount
public int lightningCount -
lightOffCount
public int lightOffCount
-
-
Constructor Details
-
MainScreenState
public MainScreenState()
-
-
Method Details
-
main
public static void main(java.lang.String[] args) -
DrawTexture
-
DrawTexture
-
enter
public void enter() -
getInstance
-
ShouldShowLogo
public boolean ShouldShowLogo() -
exit
public void exit() -
render
public void render() -
update
-
setConnectToServerState
-
redirectState
- Overrides:
redirectState
in classGameState
-
loadIcons
public static java.nio.ByteBuffer[] loadIcons() -
convertToByteBuffer
public static java.nio.ByteBuffer convertToByteBuffer(java.awt.image.BufferedImage image)
-