Package com.devcharles.piazzapanic
Class GameScreen
java.lang.Object
com.devcharles.piazzapanic.GameScreen
- All Implemented Interfaces:
com.badlogic.gdx.Screen
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate com.badlogic.gdx.graphics.OrthographicCameraprivate com.badlogic.ashley.core.PooledEngineprivate PiazzaPanicprivate Hudprivate KeyboardInputprivate MapLoaderprivate com.badlogic.gdx.InputMultiplexerprivate box2dLight.RayHandlerprivate Integer[]private com.badlogic.gdx.physics.box2d.World -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddispose()Called when this screen should release all resources.voidhide()Called when this screen is no longer the current screen for aGame.voidpause()voidrender(float delta) Called when the screen should render itself.voidresize(int width, int height) voidresume()voidshow()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.ScreenCalled when this screen becomes the current screen for aGame.- Specified by:
showin interfacecom.badlogic.gdx.Screen
-
render
public void render(float delta) Description copied from interface:com.badlogic.gdx.ScreenCalled when the screen should render itself.- Specified by:
renderin interfacecom.badlogic.gdx.Screen- Parameters:
delta- The time in seconds since the last render.
-
resize
public void resize(int width, int height) - Specified by:
resizein interfacecom.badlogic.gdx.Screen- See Also:
-
ApplicationListener.resize(int, int)
-
pause
public void pause()- Specified by:
pausein interfacecom.badlogic.gdx.Screen- See Also:
-
ApplicationListener.pause()
-
resume
public void resume()- Specified by:
resumein interfacecom.badlogic.gdx.Screen- See Also:
-
ApplicationListener.resume()
-
hide
public void hide()Description copied from interface:com.badlogic.gdx.ScreenCalled when this screen is no longer the current screen for aGame.- Specified by:
hidein interfacecom.badlogic.gdx.Screen
-
dispose
public void dispose()Description copied from interface:com.badlogic.gdx.ScreenCalled when this screen should release all resources.- Specified by:
disposein interfacecom.badlogic.gdx.Screen
-