GameInfo
class GameInfo
Content copied to clipboard
Types
YearsToTurn
Link copied to clipboard
Functions
addBombardNotification
Link copied to clipboard
private fun addBombardNotification(thisPlayer: CivilizationInfo, cities: List<CityInfo>)
Content copied to clipboard
addEnemyUnitNotification
Link copied to clipboard
private fun addEnemyUnitNotification(thisPlayer: CivilizationInfo, tiles: List<TileInfo>, inOrNear: String)
Content copied to clipboard
asPreview
Link copied to clipboard
getAliveCityStates
Link copied to clipboard
getAliveMajorCivs
Link copied to clipboard
getBarbarianCivilization
Link copied to clipboard
Get barbarian civ
getCivilization
Link copied to clipboard
Get a civ by name
getCivilizationsAsPreviews
Link copied to clipboard
getCurrentPlayerCivilization
Link copied to clipboard
getDifficulty
Link copied to clipboard
getEquivalentTurn
Link copied to clipboard
getPlayerToViewAs
Link copied to clipboard
getSpectator
Link copied to clipboard
Returns the first spectator for a playerId or creates one if none found
isReligionEnabled
Link copied to clipboard
notifyExploredResources
Link copied to clipboard
fun notifyExploredResources(civInfo: CivilizationInfo, resourceName: String, maxDistance: Int, showForeign: Boolean)
Content copied to clipboard
notifyOfCloseEnemyUnits
Link copied to clipboard
setTransients
Link copied to clipboard
fun setTransients()
Content copied to clipboard
Properties
barbarians
Link copied to clipboard
civilizations
Link copied to clipboard
currentPlayer
Link copied to clipboard
currentPlayerCiv
Link copied to clipboard
currentTurnStartTime
Link copied to clipboard
customSaveLocation
Link copied to clipboard
difficulty
Link copied to clipboard
difficultyObject
Link copied to clipboard
diplomaticVictoryVotesCast
Link copied to clipboard
gameParameters
Link copied to clipboard
isUpToDate
Link copied to clipboard
oneMoreTurnMode
Link copied to clipboard
simulateMaxTurns
Link copied to clipboard
simulateUntilWin
Link copied to clipboard
spaceResources
Link copied to clipboard
Extensions
removeMissingModReferences
Link copied to clipboard
Mods can change, leading to things on the map that are no longer defined in the mod. This function removes them so the game doesn't crash when it tries to access them.
replaceDiplomacyFlag
Link copied to clipboard
fun GameInfo.replaceDiplomacyFlag(old: DiplomacyFlags, new: DiplomacyFlags)
Content copied to clipboard
Replace a deprecated DiplomacyFlags instance
Sources
jvm source
Link copied to clipboard