Package com.devcharles.piazzapanic
Class GameScreen
java.lang.Object
com.devcharles.piazzapanic.GameScreen
- All Implemented Interfaces:
com.badlogic.gdx.Screen
-
Field Summary
Modifier and TypeFieldDescriptionprivate com.badlogic.gdx.graphics.OrthographicCamera
private com.badlogic.ashley.core.PooledEngine
private PiazzaPanic
private Hud
private KeyboardInput
private MapLoader
private com.badlogic.gdx.InputMultiplexer
private box2dLight.RayHandler
private Integer[]
private com.badlogic.gdx.physics.box2d.World
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
dispose()
Called when this screen should release all resources.void
hide()
Called when this screen is no longer the current screen for aGame
.void
pause()
void
render
(float delta) Called when the screen should render itself.void
resize
(int width, int height) void
resume()
void
show()
Called when this screen becomes the current screen for aGame
.
-
Field Details
-
engine
private com.badlogic.ashley.core.PooledEngine engine -
kbInput
-
world
private com.badlogic.gdx.physics.box2d.World world -
camera
private com.badlogic.gdx.graphics.OrthographicCamera camera -
game
-
hud
-
multiplexer
private com.badlogic.gdx.InputMultiplexer multiplexer -
rayhandler
private box2dLight.RayHandler rayhandler -
mapLoader
-
reputationPoints
-
-
Constructor Details
-
GameScreen
-
-
Method Details
-
show
public void show()Description copied from interface:com.badlogic.gdx.Screen
Called when this screen becomes the current screen for aGame
.- Specified by:
show
in interfacecom.badlogic.gdx.Screen
-
render
public void render(float delta) Description copied from interface:com.badlogic.gdx.Screen
Called when the screen should render itself.- Specified by:
render
in interfacecom.badlogic.gdx.Screen
- Parameters:
delta
- The time in seconds since the last render.
-
resize
public void resize(int width, int height) - Specified by:
resize
in interfacecom.badlogic.gdx.Screen
- See Also:
-
ApplicationListener.resize(int, int)
-
pause
public void pause()- Specified by:
pause
in interfacecom.badlogic.gdx.Screen
- See Also:
-
ApplicationListener.pause()
-
resume
public void resume()- Specified by:
resume
in interfacecom.badlogic.gdx.Screen
- See Also:
-
ApplicationListener.resume()
-
hide
public void hide()Description copied from interface:com.badlogic.gdx.Screen
Called when this screen is no longer the current screen for aGame
.- Specified by:
hide
in interfacecom.badlogic.gdx.Screen
-
dispose
public void dispose()Description copied from interface:com.badlogic.gdx.Screen
Called when this screen should release all resources.- Specified by:
dispose
in interfacecom.badlogic.gdx.Screen
-