- seconds - Variable in class com.mygdx.game.GameTimer
-
Holds the number of seconds that the timer is currently clocked to
- seconds() - Method in class com.mygdx.game.GameTimer
-
Returns the number of seconds currently clocked on the timer (within the current minute)
Changed in assessment 3 (Integer -> int)
- selectedTile - Variable in class com.mygdx.game.GameEngine
-
Holds the data pertaining to the currently-selected tile
- selectedTile() - Method in class com.mygdx.game.GameEngine
-
Returns the data pertaining to the last Tile that was selected by a player
- selectedTile - Variable in class com.mygdx.game.GameScreen
-
- selectedTileLabel - Variable in class com.mygdx.game.GameScreen
-
Label stating the getID of the currently-selected tile
- selectedTileOwnerIcon - Variable in class com.mygdx.game.GameScreen
-
Icon representing the player who owns the currently-selected tile
- selectedTileRoboticonIcon - Variable in class com.mygdx.game.GameScreen
-
Icon representing the roboticon occupying the currently-selected tile
- selectRandomEvent() - Method in class com.mygdx.game.GameEngine
-
- selectTile(Tile) - Method in class com.mygdx.game.GameEngine
-
- selectTile(Tile, boolean) - Method in class com.mygdx.game.GameScreen
-
The code to be run whenever a particular tile is clicked on
Specifically updates the label identifying the selected tile, the college icon linked to the player who owns
it, the icon representing the Roboticon planted on it and the available options for the tile in the main
in-game interface
- sell(String, int, Player) - Method in class com.mygdx.game.Market
-
A method that allows selling resources to the market.
- sellEnergy - Variable in class com.mygdx.game.Market
-
Button in the market's interface that sells the current player's energy stocks to the market
- sellFood - Variable in class com.mygdx.game.Market
-
Button in the market's interface that sells the current player's food stocks to the market
- sellOre - Variable in class com.mygdx.game.Market
-
Button in the market's interface that sells the current player's ore stocks to the market
- sender - Variable in class com.mygdx.game.Trade
-
- setBorder(float, Color) - Method in class com.mygdx.game.TTFont
-
Changes the properties of the borders around the internal BitmapFont's characters
This overloaded method produces rounded borders around the resultant BitmapFont's characters
Internal FreeTypeFontGenerator re-generates the encapsulate BitmapFont following the border change
- setBorder(float, Color, boolean) - Method in class com.mygdx.game.TTFont
-
Changes the properties of the borders around the internal BitmapFont's characters
Internal FreeTypeFontGenerator re-generates the encapsulate BitmapFont following the border change
- setEnergyBuyPrice(int) - Method in class com.mygdx.game.Market
-
Setter for EnergyBuyPrice.
- setEnergyCount(int) - Method in class com.mygdx.game.Player
-
Setter for Energycount
- setEnergyCounterValue(int) - Method in class com.mygdx.game.GameScreen
-
Sets the value represented by the energy-counter rendered within the main in-game interface
- setEnergyLevel(int) - Method in class com.mygdx.game.Roboticon
-
Setter for energyLevel
New in Assessment 3
- setEnergySellPrice(int) - Method in class com.mygdx.game.Market
-
Setter for EnergySellPrice.
- setEnergyStock(int) - Method in class com.mygdx.game.Market
-
Setter for EnergyStock.
- setFont(FileHandle) - Method in class com.mygdx.game.TTFont
-
Changes the object to encode a new font from a provided file
Internal FreeTypeFontGenerator re-generates the encapsulate BitmapFont following the .TTF file change
- setFoodBuyPrice(int) - Method in class com.mygdx.game.Market
-
Setter for FoodBuyPrice.
- setFoodCount(int) - Method in class com.mygdx.game.Player
-
Setter for Foodcount
- setFoodCounterValue(int) - Method in class com.mygdx.game.GameScreen
-
Sets the value represented by the food-counter rendered within the main in-game interface
- setFoodLevel(int) - Method in class com.mygdx.game.Roboticon
-
Setter for foodLevel
New in Assessment 3
- setFoodSellPrice(int) - Method in class com.mygdx.game.Market
-
Setter for FoodSellPrice.
- setFoodStock(int) - Method in class com.mygdx.game.Market
-
Setter for FoodStock.
- setMoney(int) - Method in class com.mygdx.game.Player
-
Setter for the money attribute
- setMoneyCounterValue(int) - Method in class com.mygdx.game.GameScreen
-
Sets the value represented by the money-counter rendered within the main in-game interface
- setOreBuyPrice(int) - Method in class com.mygdx.game.Market
-
Setter for OreBuyPrice.
- setOreCount(int) - Method in class com.mygdx.game.Player
-
Setter for Orecount
- setOreCounterValue(int) - Method in class com.mygdx.game.GameScreen
-
Sets the value represented by the ore-counter rendered within the main in-game interface
- setOreLevel(int) - Method in class com.mygdx.game.Roboticon
-
Setter for oreLevel
New in Assessment 3
- setOreSellPrice(int) - Method in class com.mygdx.game.Market
-
Setter for OreSellPrice.
- setOreStock(int) - Method in class com.mygdx.game.Market
-
Setter for OreStock.
- setOwner(Player) - Method in class com.mygdx.game.Tile
-
Changes the owner of the tile to the one specified
- setPlayerListPosition(int) - Method in class com.mygdx.game.Market
-
- setPlayers(Player[]) - Method in class com.mygdx.game.GameEngine
-
- setPrice(int) - Method in class com.mygdx.game.Trade
-
- setResource(String, int) - Method in class com.mygdx.game.Tile
-
Sets a certain resource count to the specified amount.
- setRoboticonBuyPrice(int) - Method in class com.mygdx.game.Market
-
Setter for RoboticonBuyPrice
- setRoboticonCounterValue(int) - Method in class com.mygdx.game.GameScreen
-
Sets the value represented by the Roboticon-counter rendered within the main in-game interface
- setRoboticonStock(int) - Method in class com.mygdx.game.Market
-
Sets the market's Roboticon stock level
Also updates the appropriate stock label to reflect the new quantity given
- setShadow(int, int, Color) - Method in class com.mygdx.game.TTFont
-
Changes the properties of the shadows beneath the internal BitmapFont's characters
Internal FreeTypeFontGenerator re-generates the encapsulate BitmapFont following the shadow change
- setSize(int) - Method in class com.mygdx.game.TTFont
-
Changes the (consistent) size of the internal BitmapFont's encoded characters
Internal FreeTypeFontGenerator re-generates the encapsulate BitmapFont following the size change
- setTerminalMethod(Runnable) - Method in class com.mygdx.game.GameTimer
-
Sets a new method for the timer to execute when it hits 0
- setTileBorderColor(Color) - Method in class com.mygdx.game.Tile
-
Sets the colour of the tile's border
This must only be called if and when a player acquires the tile
- setTime(int, int) - Method in class com.mygdx.game.GameTimer
-
Clocks the timer to the provided time
Specifically changes the internal minutes/seconds variables as necessary and updates the core label's
appearance to visualise the new timer provided
Changed in Assessment 3
- setTrade(Trade) - Method in class com.mygdx.game.Player
-
- shadowColor() - Method in class com.mygdx.game.TTFont
-
Returns the (consistent) colour of the shadows beneath the internal BitmapFont's characters
- show() - Method in class com.mygdx.game.GameScreen
-
Executes when the game-screen is loaded up, typically from the point of another screen
Serves as an extension of the screen's constructor that primarily builds visual elements
Currently instantiates Drawer object, the main stage, the font used to render on-screen text and the image of
the game's map before constructing the three primary tables that make up the in-game interface (along with the
auxiliary pause menu)
- show() - Method in class com.mygdx.game.HowToPlay
-
Secondary constructor of the main menu which focuses on preparing visual elements
Specifically instantiates the menu's stage; spatial construction table; fonts; background image and buttons
before adding the stage containing the table (which itself contains the menu's labels, buttons and background
image) to the screen's rendering pipeline, which is also set up at the beginning of this method
- show() - Method in class com.mygdx.game.LeaderboardFrontend
-
Secondary constructor of the main menu which focuses on preparing visual elements
Specifically instantiates the menu's stage; spatial construction table; fonts; background image and buttons
before adding the stage containing the table (which itself contains the menu's labels, buttons and background
image) to the screen's rendering pipeline, which is also set up at the beginning of this method
- show() - Method in class com.mygdx.game.MainMenu
-
Secondary constructor of the main menu which focuses on preparing visual elements
Specifically instantiates the menu's stage; spatial construction table; fonts; background image and buttons
before adding the stage containing the table (which itself contains the menu's labels, buttons and background
image) to the screen's rendering pipeline, which is also set up at the beginning of this method
- show() - Method in class com.mygdx.game.MiniGameScreen
-
- show() - Method in class com.mygdx.game.PlayerSelectScreen
-
- show() - Method in class com.mygdx.game.SplashScreen
-
Acts as a secondary constructor for the screen.
- showchancellorTexture() - Method in class com.mygdx.game.Tile
-
Adds a chancellor to the tile
- showEventMessage(String) - Method in class com.mygdx.game.GameScreen
-
- shown - Variable in class com.mygdx.game.GameScreen
-
- showPlayerWin(Player) - Method in class com.mygdx.game.GameScreen
-
- size() - Method in class com.mygdx.game.TTFont
-
Returns the (consistent) size of the internal BitmapFont's characters
- SplashScreen - Class in com.mygdx.game
-
- SplashScreen(Game) - Constructor for class com.mygdx.game.SplashScreen
-
The constructor for the splash screen.
- stage - Variable in class com.mygdx.game.HowToPlay
-
On-screen stage which can be populated with actors
- stage - Variable in class com.mygdx.game.LeaderboardFrontend
-
On-screen stage which can be populated with actors
- stage - Variable in class com.mygdx.game.MainMenu
-
On-screen stage which can be populated with actors
- stage - Variable in class com.mygdx.game.MiniGameScreen
-
- stage - Variable in class com.mygdx.game.PlayerSelectScreen
-
On-screen stage which can be populated with actors
- start() - Method in class com.mygdx.game.GameTimer
-
Starts the timer (and changes the timer's colour appropriately)
- startingRoboticonLevels - Variable in class com.mygdx.game.Malfunction
-
- state - Variable in class com.mygdx.game.GameEngine
-
Variable dictating whether the game is running or paused at any given moment
- state() - Method in class com.mygdx.game.GameEngine
-
Return's the game's current play-state, which can either be [State.RUN] or [State.PAUSE]
This is not to be confused with the game-state (which is directly linked to the renderer)
- State() - Constructor for enum com.mygdx.game.GameEngine.State
-
- stop() - Method in class com.mygdx.game.GameTimer
-
Stops the timer (and changes the timer's colour appropriately)
Changed in Assessment 3 (to reset back to 0:0)
- stretchCurrentCell(Table) - Method in class com.mygdx.game.Drawer
-
Stretches the last row in the provided table to span across the maximum number of columns in that table