CityConstructions
class CityConstructions
Content copied to clipboard
City constructions manager.
Constructors
CityConstructions
Link copied to clipboard
fun CityConstructions()
Content copied to clipboard
Functions
addBuilding
Link copied to clipboard
addCheapestBuildableStatBuilding
Link copied to clipboard
addFreeBuildings
Link copied to clipboard
fun addFreeBuildings()
Content copied to clipboard
addProductionPoints
Link copied to clipboard
addToQueue
Link copied to clipboard
chooseNextConstruction
Link copied to clipboard
fun chooseNextConstruction()
Content copied to clipboard
clone
Link copied to clipboard
constructIfEnough
Link copied to clipboard
fun constructIfEnough()
Content copied to clipboard
constructionBegun
Link copied to clipboard
constructionComplete
Link copied to clipboard
private fun constructionComplete(construction: INonPerpetualConstruction)
Content copied to clipboard
containsBuildingOrEquivalent
Link copied to clipboard
getBasicStatBuildings
Link copied to clipboard
getBuildableBuildings
Link copied to clipboard
getBuiltBuildings
Link copied to clipboard
getCityProductionTextForCityButton
Link copied to clipboard
getConstructableUnits
Link copied to clipboard
getConstruction
Link copied to clipboard
getCurrentConstruction
Link copied to clipboard
getMaintenanceCosts
Link copied to clipboard
getProductionMarkup
Link copied to clipboard
getRemainingWork
Link copied to clipboard
fun getRemainingWork(constructionName: String, useStoredProduction: Boolean = true): Int
Content copied to clipboard
getStatPercentBonuses
Link copied to clipboard
getTurnsToConstructionString
Link copied to clipboard
internal fun getTurnsToConstructionString(constructionName: String, useStoredProduction: Boolean = true): String
Content copied to clipboard
getWorkDone
Link copied to clipboard
hasBuildableStatBuildings
Link copied to clipboard
isBeingConstructed
Link copied to clipboard
isBeingConstructedOrEnqueued
Link copied to clipboard
isBuildingWonder
Link copied to clipboard
isEnqueued
Link copied to clipboard
isFirstConstructionOfItsKind
Link copied to clipboard
fun isFirstConstructionOfItsKind(constructionQueueIndex: Int, name: String): Boolean
Content copied to clipboard
If the city is constructing multiple units of the same type, subsequent units will require the full cost
isQueueFull
Link copied to clipboard
lowerPriority
Link copied to clipboard
purchaseConstruction
Link copied to clipboard
raisePriority
Link copied to clipboard
removeBuilding
Link copied to clipboard
removeCurrentConstruction
Link copied to clipboard
private fun removeCurrentConstruction()
Content copied to clipboard
removeFromQueue
Link copied to clipboard
If this was done automatically, we should automatically try to choose a new construction and treat it as such
setTransients
Link copied to clipboard
fun setTransients()
Content copied to clipboard
turnsToConstruction
Link copied to clipboard
fun turnsToConstruction(constructionName: String, useStoredProduction: Boolean = true): Int
Content copied to clipboard
updateUniques
Link copied to clipboard
fun updateUniques()
Content copied to clipboard
validateConstructionQueue
Link copied to clipboard
private fun validateConstructionQueue()
Content copied to clipboard
validateInProgressConstructions
Link copied to clipboard
private fun validateInProgressConstructions()
Content copied to clipboard
Properties
builtBuildingObjects
Link copied to clipboard
builtBuildings
Link copied to clipboard
builtBuildingUniqueMap
Link copied to clipboard
constructionQueue
Link copied to clipboard
currentConstructionFromQueue
Link copied to clipboard
currentConstructionIsUserSet
Link copied to clipboard
a flag indicating if the currentConstructionFromQueue has been set by the user or by the AI
freeBuildingsProvidedFromThisCity
Link copied to clipboard
inProgressConstructions
Link copied to clipboard
productionOverflow
Link copied to clipboard
queueMaxSize
Link copied to clipboard
Sources
jvm source
Link copied to clipboard