CityScreen

class CityScreen(city: CityInfo, selectedConstruction: IConstruction?, selectedTile: TileInfo?) : BaseScreen

Types

Companion
Link copied to clipboard
object Companion

Functions

addTiles
Link copied to clipboard
private fun addTiles()
displayTutorial
Link copied to clipboard
fun displayTutorial(tutorial: Tutorial, test: () -> Boolean? = null)
dispose
Link copied to clipboard
open override fun dispose()
equals
Link copied to clipboard
open operator fun equals(other: Any?): Boolean
exit
Link copied to clipboard
fun exit()
hashCode
Link copied to clipboard
open fun hashCode(): Int
hide
Link copied to clipboard
open override fun hide()
isCrampedPortrait
Link copied to clipboard
fun isCrampedPortrait(): Boolean
isNarrowerThan4to3
Link copied to clipboard
fun isNarrowerThan4to3(): Boolean
isPortrait
Link copied to clipboard
fun isPortrait(): Boolean
onBackButtonClicked
Link copied to clipboard
fun onBackButtonClicked(action: () -> Unit)
openOptionsPopup
Link copied to clipboard
fun openOptionsPopup()
page
Link copied to clipboard
fun page(delta: Int)
pause
Link copied to clipboard
open override fun pause()
render
Link copied to clipboard
open override fun render(delta: Float)
resize
Link copied to clipboard
open override fun resize(width: Int, height: Int)
resume
Link copied to clipboard
open override fun resume()
show
Link copied to clipboard
open override fun show()
toString
Link copied to clipboard
open fun toString(): String
update
Link copied to clipboard
internal fun update()
updateAnnexAndRazeCityButton
Link copied to clipboard
private fun updateAnnexAndRazeCityButton()
updateTileGroups
Link copied to clipboard
private fun updateTileGroups()

Properties

canChangeState
Link copied to clipboard
val canChangeState: Boolean

Toggles or adds/removes all state changing buttons

city
Link copied to clipboard
internal val city: CityInfo
cityInfoTable
Link copied to clipboard
private var cityInfoTable: CityInfoTable

Displays stats, buildings, specialists and stats drilldown - sits on TOP LEFT, can be toggled to

cityPickerTable
Link copied to clipboard
private var cityPickerTable: CityScreenCityPickerTable

Displays city name, allows switching between cities - sits on BOTTOM CENTER

cityStatsTable
Link copied to clipboard
private var cityStatsTable: CityStatsTable

Displays city stats info

constructionsTable
Link copied to clipboard
private var constructionsTable: CityConstructionsTable

Displays current production, production queue and available productions list Not a widget, but manages two: construction queue, info toggle button, buy buttons in a Table holder on upper LEFT, and available constructions in a ScrollPane lower LEFT.

exitCityButton
Link copied to clipboard
private val exitCityButton: TextButton

Button for exiting the city - sits on BOTTOM CENTER

game
Link copied to clipboard
val game: UncivGame
keyPressDispatcher
Link copied to clipboard
val keyPressDispatcher: KeyPressDispatcher
mapScrollPane
Link copied to clipboard
private val mapScrollPane: ZoomableScrollPane

The ScrollPane for the background map view of the city surroundings

razeCityButtonHolder
Link copied to clipboard
private var razeCityButtonHolder: Table

Displays raze city button - sits on TOP CENTER

selectedConstruction
Link copied to clipboard
var selectedConstruction: IConstruction? = null
selectedConstructionTable
Link copied to clipboard
private var selectedConstructionTable: ConstructionInfoTable

Displays selected construction info, alternate with tileTable - sits on BOTTOM RIGHT

selectedTile
Link copied to clipboard
var selectedTile: TileInfo? = null
showConstructionsTable
Link copied to clipboard
var showConstructionsTable: Boolean = true

Toggle between Constructions and cityInfo (buildings, specialists etc.

stage
Link copied to clipboard
val stage: Stage
tileGroups
Link copied to clipboard
private var tileGroups: ArrayList<CityTileGroup>

Holds City tiles group

tileTable
Link copied to clipboard
private var tileTable: CityScreenTileTable

Displays tile info, alternate with selectedConstructionTable - sits on BOTTOM RIGHT

tutorialController
Link copied to clipboard
protected val tutorialController: TutorialController

Sources

jvm source
Link copied to clipboard