Modifier and Type | Field and Description |
---|---|
(package private) Tile |
Chancellor.currentTile |
private Tile |
Roboticon.CurrentTile
Variable holding what tile the roboticon is stored on.
|
private Tile |
GameScreen.selectedTile |
private Tile |
GameEngine.selectedTile
Holds the data pertaining to the currently-selected tile
|
private Tile[] |
GameEngine.tiles
Array holding the tiles to be laid over the map
Note that the tiles' visuals are encoded by the image declared and stored in the GameScreen class (and not here)
|
Modifier and Type | Field and Description |
---|---|
private java.util.List<Tile> |
Malfunction.playerTiles |
private java.util.List<Tile> |
Player.TileList
A list of the tiles that the player owns.
|
private java.util.ArrayList<Tile> |
Earthquake.tilesDamaged |
private java.util.ArrayList<Tile> |
Malfunction.tilesWithRoboticons |
Modifier and Type | Method and Description |
---|---|
Tile |
Chancellor.getCurrentTile()
Getter for the current tile
Used for testing class
|
Tile[] |
GameEngine.getTiles() |
Tile |
GameEngine.selectedTile()
Returns the data pertaining to the last Tile that was selected by a player
|
Tile[] |
GameEngine.tiles()
Collectively returns every Tile managed by the engine in array
|
Modifier and Type | Method and Description |
---|---|
private java.util.ArrayList<Tile> |
Earthquake.chooseAffectedTiles()
A method which chooses the tiles to be damaged by the earthquake.
|
java.util.List<Tile> |
Player.getTileList()
Getter for the tile list of the Player
|
java.util.ArrayList<Tile> |
Earthquake.getTilesDamaged()
A method which returns the tiles chosen to be damaged by the earthquake.
|
Modifier and Type | Method and Description |
---|---|
void |
Player.assignTile(Tile Tile)
Adds the specified tile to the players list of tiles.
|
private void |
GameScreen.chancellor(Tile tile)
Draws the chancellor is it is set to visible
|
void |
GameEngine.selectTile(Tile tile) |
void |
GameScreen.selectTile(Tile tile,
boolean showAnimation)
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
|
void |
GameScreen.updateSelectedTileLabel(Tile tile)
Updates the label on the right-hand side of the in-game interface to visualise the identity of the selected tile
Alternative method that takes an ID value from a provided tile rather than an ID value directly
|
Constructor and Description |
---|
Roboticon(int ID,
Player Player,
Tile Tile)
Constructor of the class
|