Package com.shr4pnel.casino
Class Casino
java.lang.Object
com.badlogic.gdx.ApplicationAdapter
com.shr4pnel.casino.Casino
- All Implemented Interfaces:
com.badlogic.gdx.ApplicationListener
public class Casino
extends com.badlogic.gdx.ApplicationAdapter
Application entry point
ApplicationListener implementation shared by all platforms.- Since:
- 0.1.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcreate()voiddispose()static ConsoleManagerGet the instance of a game (stored in sceneInstanceMap)static CasinoGet the casino as an object, useful for getting important info about active statesGet the instance of a scene (stored in sceneInstanceMap)voidrender()voidresize(int width, int height) Methods inherited from class com.badlogic.gdx.ApplicationAdapter
pause, resume
-
Constructor Details
-
Casino
public Casino()
-
-
Method Details
-
create
public void create()- Specified by:
createin interfacecom.badlogic.gdx.ApplicationListener- Overrides:
createin classcom.badlogic.gdx.ApplicationAdapter
-
render
public void render()- Specified by:
renderin interfacecom.badlogic.gdx.ApplicationListener- Overrides:
renderin classcom.badlogic.gdx.ApplicationAdapter
-
dispose
public void dispose()- Specified by:
disposein interfacecom.badlogic.gdx.ApplicationListener- Overrides:
disposein classcom.badlogic.gdx.ApplicationAdapter
-
resize
public void resize(int width, int height) - Specified by:
resizein interfacecom.badlogic.gdx.ApplicationListener- Overrides:
resizein classcom.badlogic.gdx.ApplicationAdapter
-
getActiveConsole
-
getInstance
Get the casino as an object, useful for getting important info about active states- Returns:
- The running instance of casino
-
getGameInstance
Get the instance of a game (stored in sceneInstanceMap)- Parameters:
s- The scene to get- Returns:
- The scene, as a ManagedButtonGame
-
getSceneInstance
Get the instance of a scene (stored in sceneInstanceMap)- Parameters:
s- The scene to get- Returns:
- The scene, as a ManagedButtonScene
-
getTextureManagerInstance
- Returns:
- The active texture manager
-