public class GameScreenUI
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static SpriteButton |
abortRouteBtn |
static SpriteButton |
cancelRouteBtn |
static com.badlogic.gdx.scenes.scene2d.ui.Label |
cardQuant |
static com.badlogic.gdx.scenes.scene2d.ui.Label |
coalQuant |
static SpriteButton |
confirmRouteBtn |
static com.badlogic.gdx.scenes.scene2d.ui.Label |
currentPlayerName |
static SpriteButton |
deleteButton |
static com.badlogic.gdx.scenes.scene2d.ui.SelectBox<java.lang.String> |
editConnectionColour |
static com.badlogic.gdx.scenes.scene2d.ui.Label |
editConnectionColourLabel |
static com.badlogic.gdx.scenes.scene2d.ui.TextField |
editMapName |
static com.badlogic.gdx.scenes.scene2d.ui.Label |
editMapNameLabel |
static com.badlogic.gdx.scenes.scene2d.ui.SelectBox<java.lang.String> |
editMapSelect |
static com.badlogic.gdx.scenes.scene2d.ui.Label |
editMapSelectLabel |
static com.badlogic.gdx.scenes.scene2d.ui.TextField |
editPositionX |
static com.badlogic.gdx.scenes.scene2d.ui.Label |
editPositionXLabel |
static com.badlogic.gdx.scenes.scene2d.ui.TextField |
editPositionY |
static com.badlogic.gdx.scenes.scene2d.ui.Label |
editPositionYLabel |
static com.badlogic.gdx.scenes.scene2d.ui.TextField |
editStationFuel |
static com.badlogic.gdx.scenes.scene2d.ui.Label |
editStationFuelLabel |
static com.badlogic.gdx.scenes.scene2d.ui.CheckBox |
editStationLocked |
static com.badlogic.gdx.scenes.scene2d.ui.Label |
editStationLockedLabel |
static com.badlogic.gdx.scenes.scene2d.ui.TextField |
editStationName |
static com.badlogic.gdx.scenes.scene2d.ui.Label |
editStationNameLabel |
static com.badlogic.gdx.scenes.scene2d.ui.TextField |
editStationRent |
static com.badlogic.gdx.scenes.scene2d.ui.Label |
editStationRentLabel |
static com.badlogic.gdx.scenes.scene2d.ui.SelectBox<java.lang.String> |
editStationResource |
static com.badlogic.gdx.scenes.scene2d.ui.Label |
editStationResourceLabel |
static com.badlogic.gdx.scenes.scene2d.ui.TextField |
editStationValue |
static com.badlogic.gdx.scenes.scene2d.ui.Label |
editStationValueLabel |
static com.badlogic.gdx.scenes.scene2d.ui.Label |
electricityQuant |
static int |
expandedheight |
static SpriteButton |
game_card_togglebtn |
static SpriteButton |
game_editing_connectionTool |
static Sprite |
game_editing_infobar |
static SpriteButton |
game_editing_junctionTool |
static SpriteButton |
game_editing_stationTool |
static Sprite |
game_menuobject_cornerframe |
static SpriteButton |
game_menuobject_endturnbutton |
static SpriteButton |
game_menuobject_goalscreenbtn |
static SpriteButton |
game_menuobject_infobutton |
static SpriteButton |
game_menuobject_menubtn |
static Sprite |
game_menuobject_resourcesbar |
static SpriteButton |
game_menuobject_shopbtn |
static SpriteButton |
game_menuobject_skipturnbutton |
static Sprite |
game_menuobject_ticketenclosure |
static SpriteButton |
game_menuobject_tickettoggle |
static Sprite |
game_menuobject_topbar |
static SpriteButton |
game_menuobject_traindepotbtn |
static SpriteButton |
game_resources_togglebtn |
static com.badlogic.gdx.scenes.scene2d.ui.Label |
goldQuant |
static int |
menuobjectsStageEnd |
static int |
menuobjectsStageStart |
static com.badlogic.gdx.scenes.scene2d.ui.Label |
nuclearQuant |
static com.badlogic.gdx.scenes.scene2d.ui.Label |
oilQuant |
static com.badlogic.gdx.scenes.scene2d.ui.Label |
playerScore |
static boolean |
resourcebarexpanded |
static int |
resourcesStageEnd |
static int |
resourcesStageStart |
static com.badlogic.gdx.scenes.scene2d.ui.Label |
routeFuelCost |
static com.badlogic.gdx.scenes.scene2d.ui.Label |
routeLength |
static com.badlogic.gdx.scenes.scene2d.ui.Label |
routeRemaining |
static Sprite |
routingModeWindow |
static SpriteButton |
saveButton |
static Sprite |
selectedConnectionTool |
static Sprite |
selectedJunctionTool |
static Sprite |
selectedStationTool |
static boolean |
toolRender |
static SpriteButton |
undoLastRouteButton |
Constructor and Description |
---|
GameScreenUI() |
Modifier and Type | Method and Description |
---|---|
void |
create(com.badlogic.gdx.scenes.scene2d.Stage stage)
Create method instantiates all Labels, Sprites and SpriteButtons in the Main game screen and then adds them to the stage.
|
static void |
EndTurn() |
static void |
enterRoutingMode()
enterRoutingMode() enters the player into routing mode.
|
static void |
exitRoutingMode()
exitRoutingMode() exits routing mode.
|
static com.badlogic.gdx.scenes.scene2d.ui.Label.LabelStyle |
getLabelStyle(int fontsize) |
static int |
getStageEnd() |
static int |
getStageStart() |
static void |
refreshResources()
refreshResources() refreshes all resource quantities for the current player.
|
static void |
setResourcesHeight(float height)
Changes all quantity label heights with the toggle resources button
|
public static com.badlogic.gdx.scenes.scene2d.ui.Label playerScore
public static Sprite game_menuobject_topbar
public static Sprite game_menuobject_ticketenclosure
public static SpriteButton game_menuobject_tickettoggle
public static SpriteButton game_menuobject_goalscreenbtn
public static SpriteButton game_menuobject_menubtn
public static com.badlogic.gdx.scenes.scene2d.ui.Label currentPlayerName
public static com.badlogic.gdx.scenes.scene2d.ui.Label routeLength
public static com.badlogic.gdx.scenes.scene2d.ui.Label routeRemaining
public static com.badlogic.gdx.scenes.scene2d.ui.Label routeFuelCost
public static com.badlogic.gdx.scenes.scene2d.ui.Label editMapNameLabel
public static com.badlogic.gdx.scenes.scene2d.ui.Label editMapSelectLabel
public static com.badlogic.gdx.scenes.scene2d.ui.Label editStationNameLabel
public static com.badlogic.gdx.scenes.scene2d.ui.Label editConnectionColourLabel
public static com.badlogic.gdx.scenes.scene2d.ui.Label editStationValueLabel
public static com.badlogic.gdx.scenes.scene2d.ui.Label editStationResourceLabel
public static com.badlogic.gdx.scenes.scene2d.ui.Label editStationFuelLabel
public static com.badlogic.gdx.scenes.scene2d.ui.Label editStationRentLabel
public static com.badlogic.gdx.scenes.scene2d.ui.Label editStationLockedLabel
public static com.badlogic.gdx.scenes.scene2d.ui.Label editPositionXLabel
public static com.badlogic.gdx.scenes.scene2d.ui.Label editPositionYLabel
public static Sprite game_menuobject_cornerframe
public static Sprite routingModeWindow
public static Sprite game_editing_infobar
public static Sprite selectedStationTool
public static Sprite selectedJunctionTool
public static Sprite selectedConnectionTool
public static SpriteButton game_menuobject_infobutton
public static SpriteButton game_menuobject_shopbtn
public static SpriteButton game_menuobject_traindepotbtn
public static SpriteButton game_menuobject_endturnbutton
public static SpriteButton game_menuobject_skipturnbutton
public static SpriteButton game_editing_stationTool
public static SpriteButton game_editing_junctionTool
public static SpriteButton game_editing_connectionTool
public static SpriteButton saveButton
public static SpriteButton deleteButton
public static SpriteButton confirmRouteBtn
public static SpriteButton undoLastRouteButton
public static SpriteButton abortRouteBtn
public static SpriteButton cancelRouteBtn
public static com.badlogic.gdx.scenes.scene2d.ui.SelectBox<java.lang.String> editStationResource
public static com.badlogic.gdx.scenes.scene2d.ui.SelectBox<java.lang.String> editConnectionColour
public static com.badlogic.gdx.scenes.scene2d.ui.SelectBox<java.lang.String> editMapSelect
public static com.badlogic.gdx.scenes.scene2d.ui.TextField editStationName
public static com.badlogic.gdx.scenes.scene2d.ui.TextField editStationValue
public static com.badlogic.gdx.scenes.scene2d.ui.TextField editMapName
public static com.badlogic.gdx.scenes.scene2d.ui.TextField editStationFuel
public static com.badlogic.gdx.scenes.scene2d.ui.TextField editStationRent
public static com.badlogic.gdx.scenes.scene2d.ui.TextField editPositionX
public static com.badlogic.gdx.scenes.scene2d.ui.TextField editPositionY
public static com.badlogic.gdx.scenes.scene2d.ui.CheckBox editStationLocked
public static int menuobjectsStageStart
public static int menuobjectsStageEnd
public static com.badlogic.gdx.scenes.scene2d.ui.Label goldQuant
public static com.badlogic.gdx.scenes.scene2d.ui.Label coalQuant
public static com.badlogic.gdx.scenes.scene2d.ui.Label oilQuant
public static com.badlogic.gdx.scenes.scene2d.ui.Label electricityQuant
public static com.badlogic.gdx.scenes.scene2d.ui.Label nuclearQuant
public static com.badlogic.gdx.scenes.scene2d.ui.Label cardQuant
public static Sprite game_menuobject_resourcesbar
public static SpriteButton game_card_togglebtn
public static SpriteButton game_resources_togglebtn
public static int resourcesStageStart
public static int resourcesStageEnd
public static int expandedheight
public static boolean toolRender
public static boolean resourcebarexpanded
public void create(com.badlogic.gdx.scenes.scene2d.Stage stage)
stage
- The stage is the central collection of actors(Sprites and SpriteButtons) passed from GameScreenpublic static int getStageStart()
public static int getStageEnd()
public static void enterRoutingMode()
public static void exitRoutingMode()
public static void refreshResources()
public static void setResourcesHeight(float height)
height
- the height that the labels are to be raised or lowered topublic static com.badlogic.gdx.scenes.scene2d.ui.Label.LabelStyle getLabelStyle(int fontsize)
fontsize
- -the size of the font style returned by methodpublic static void EndTurn()