CityInfoReligionManager
class CityInfoReligionManager
Content copied to clipboard
Functions
addPressure
Link copied to clipboard
fun addPressure(religionName: String, amount: Int, shouldUpdateFollowers: Boolean = true)
Content copied to clipboard
clearAllPressures
Link copied to clipboard
private fun clearAllPressures()
Content copied to clipboard
clone
Link copied to clipboard
getAffectedBySurroundingCities
Link copied to clipboard
private fun getAffectedBySurroundingCities()
Content copied to clipboard
getFollowersOf
Link copied to clipboard
getFollowersOfMajorityReligion
Link copied to clipboard
getFollowersOfOtherReligionsThan
Link copied to clipboard
getMajorityReligion
Link copied to clipboard
getMajorityReligionName
Link copied to clipboard
getNumberOfFollowers
Link copied to clipboard
getPressures
Link copied to clipboard
getPressuresFromSurroundingCities
Link copied to clipboard
Doesn't update the pressures, only returns what they are if the update were to happen right now
getSpreadRange
Link copied to clipboard
getUniques
Link copied to clipboard
isProtectedByInquisitor
Link copied to clipboard
pressureAmountToAdjacentCities
Link copied to clipboard
removeAllPressuresExceptFor
Link copied to clipboard
removeUnknownPantheons
Link copied to clipboard
fun removeUnknownPantheons()
Content copied to clipboard
Removes all pantheons except for the one founded by the current owner of the city Should be called whenever a city changes hands, e.g. conquering and trading
setTransients
Link copied to clipboard
triggerReligionAdoption
Link copied to clipboard
updateNumberOfFollowers
Link copied to clipboard
private fun updateNumberOfFollowers(checkForReligionAdoption: Boolean = true)
Content copied to clipboard
updatePressureOnPopulationChange
Link copied to clipboard
Properties
pressureFromAdjacentCities
Link copied to clipboard
religionsAtSomePointAdopted
Link copied to clipboard
religionThisIsTheHolyCityOf
Link copied to clipboard
Sources
jvm source
Link copied to clipboard