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.ApplicationListener
public void dispose()
dispose
in interface com.badlogic.gdx.ApplicationListener
dispose
in class com.badlogic.gdx.Game
public InteractableGame getGame()
RoboRallyUI
getGame
in interface RoboRallyUI
public void setGame(RoboRallyGame game)
RoboRallyUI
setGame
in interface RoboRallyUI
game
- The new robo rally game being renderedpublic void quit(java.lang.String string)
RoboRallyUI
quit
in interface RoboRallyUI
string
- The message describing why the game quitpublic RoboRallyServer getServer()
RoboRallyUI
getServer
in interface RoboRallyUI
public void setShouldHurry(boolean shouldHurry)
RoboRallyUI
setShouldHurry
in interface RoboRallyUI
shouldHurry
- True if the user should hurrypublic void quit()
public boolean isTesting()
RoboRallyUI
isTesting
in interface RoboRallyUI