public class RoboRallyWrapper extends com.badlogic.gdx.Game implements RoboRallyUI
| Modifier and Type | Field and Description |
|---|---|
com.badlogic.gdx.graphics.g2d.SpriteBatch |
batch |
RoboRallyClient |
client |
com.badlogic.gdx.graphics.g2d.BitmapFont |
font |
boolean |
isTesting |
int |
networkPort |
RoboRallyGame |
roboRallyGame |
ScreenManager |
screenManager |
RoboRallyServer |
server |
boolean |
shouldHurry |
| Constructor and Description |
|---|
RoboRallyWrapper() |
| Modifier and Type | Method and Description |
|---|---|
void |
create() |
void |
dispose() |
InteractableGame |
getGame()
Gets the robo rally game being rendered by the UI
|
RoboRallyServer |
getServer()
Gets the servers used for receiving objects from clients
|
boolean |
isTesting()
Gets whether the game should be started in test mode
|
void |
quit()
Quits the game
|
void |
quit(java.lang.String string)
Quits the game in whatever way is appropriate
|
void |
setGame(RoboRallyGame game)
Sets the robo rally game being rendered by the UI
|
void |
setShouldHurry(boolean shouldHurry)
Sets whether the client should hurry with whatever it's doing
|
public int networkPort
public com.badlogic.gdx.graphics.g2d.SpriteBatch batch
public com.badlogic.gdx.graphics.g2d.BitmapFont font
public ScreenManager screenManager
public RoboRallyGame roboRallyGame
public RoboRallyServer server
public RoboRallyClient client
public boolean shouldHurry
public boolean isTesting
public void create()
create in interface com.badlogic.gdx.ApplicationListenerpublic void dispose()
dispose in interface com.badlogic.gdx.ApplicationListenerdispose in class com.badlogic.gdx.Gamepublic InteractableGame getGame()
RoboRallyUIgetGame in interface RoboRallyUIpublic void setGame(RoboRallyGame game)
RoboRallyUIsetGame in interface RoboRallyUIgame - The new robo rally game being renderedpublic void quit(java.lang.String string)
RoboRallyUIquit in interface RoboRallyUIstring - The message describing why the game quitpublic RoboRallyServer getServer()
RoboRallyUIgetServer in interface RoboRallyUIpublic void setShouldHurry(boolean shouldHurry)
RoboRallyUIsetShouldHurry in interface RoboRallyUIshouldHurry - True if the user should hurrypublic void quit()
public boolean isTesting()
RoboRallyUIisTesting in interface RoboRallyUI