public class LocomotionCommotion
extends com.badlogic.gdx.Game
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
gameMode |
GameScreen |
gameScreen |
static java.lang.Boolean |
isReplay |
CoreGame |
newGame |
static java.lang.String |
player1name |
static java.lang.String |
player2name |
static int |
screenX |
static int |
screenY |
static java.lang.String |
TITLE |
static int |
turnChoice |
static java.lang.String |
VERSION |
| Modifier and Type | Method and Description |
|---|---|
void |
create()
Create sets the screen to show the start scene
|
void |
dispose() |
static LocomotionCommotion |
getInstance() |
void |
pause() |
void |
render() |
void |
resize(int width,
int height) |
void |
resume() |
void |
setGameScreen()
This Method sets the screen to the gameScreen, We dispose the startScene, create a new gameScreen reset the screen which resets the booleans to the start
setting for all the relevant gamescreen objects.
|
void |
setMapEditScreen()
This method changes the screen to the map editing UI and disposes of the startScene.
|
void |
setMenuScreen()
This Method changes the screen to startScene.
|
public GameScreen gameScreen
public CoreGame newGame
public static int screenX
public static int screenY
public static java.lang.String gameMode
public static java.lang.String player1name
public static java.lang.String player2name
public static java.lang.Boolean isReplay
public static int turnChoice
public static final java.lang.String TITLE
public static final java.lang.String VERSION
public static LocomotionCommotion getInstance()
public void create()
public void setGameScreen()
public void setMenuScreen()
public void setMapEditScreen()
public void resize(int width,
int height)
resize in interface com.badlogic.gdx.ApplicationListenerresize in class com.badlogic.gdx.Gamepublic void render()
render in interface com.badlogic.gdx.ApplicationListenerrender in class com.badlogic.gdx.Gamepublic void pause()
pause in interface com.badlogic.gdx.ApplicationListenerpause in class com.badlogic.gdx.Gamepublic void resume()
resume in interface com.badlogic.gdx.ApplicationListenerresume in class com.badlogic.gdx.Gamepublic void dispose()
dispose in interface com.badlogic.gdx.ApplicationListenerdispose in class com.badlogic.gdx.Game