UnitActions

object UnitActions

Functions

addActionsWithLimitedUses
Link copied to clipboard
fun addActionsWithLimitedUses(unit: MapUnit, actionList: ArrayList<UnitAction>, tile: TileInfo)
addAutomateBuildingImprovementsAction
Link copied to clipboard
private fun addAutomateBuildingImprovementsAction(unit: MapUnit, actionList: ArrayList<UnitAction>)
addBuildingImprovementsAction
Link copied to clipboard
private fun addBuildingImprovementsAction(unit: MapUnit, actionList: ArrayList<UnitAction>, tile: TileInfo, worldScreen: WorldScreen, unitTable: UnitTable)
addCreateWaterImprovements
Link copied to clipboard
private fun addCreateWaterImprovements(unit: MapUnit, actionList: ArrayList<UnitAction>)
addDisbandAction
Link copied to clipboard
private fun addDisbandAction(actionList: ArrayList<UnitAction>, unit: MapUnit, worldScreen: WorldScreen)
addEnhanceReligionAction
Link copied to clipboard
private fun addEnhanceReligionAction(unit: MapUnit, actionList: ArrayList<UnitAction>)
addExplorationActions
Link copied to clipboard
private fun addExplorationActions(unit: MapUnit, actionList: ArrayList<UnitAction>)
addFortifyActions
Link copied to clipboard
private fun addFortifyActions(actionList: ArrayList<UnitAction>, unit: MapUnit, showingAdditionalActions: Boolean)
addFoundCityAction
Link copied to clipboard
private fun addFoundCityAction(unit: MapUnit, actionList: ArrayList<UnitAction>, tile: TileInfo)
addFoundReligionAction
Link copied to clipboard
private fun addFoundReligionAction(unit: MapUnit, actionList: ArrayList<UnitAction>)
addGiftAction
Link copied to clipboard
private fun addGiftAction(unit: MapUnit, actionList: ArrayList<UnitAction>, tile: TileInfo)
addGreatPersonActions
Link copied to clipboard
private fun addGreatPersonActions(unit: MapUnit, actionList: ArrayList<UnitAction>, tile: TileInfo)
addParadropAction
Link copied to clipboard
private fun addParadropAction(unit: MapUnit, actionList: ArrayList<UnitAction>, worldScreen: WorldScreen)
addPillageAction
Link copied to clipboard
private fun addPillageAction(unit: MapUnit, actionList: ArrayList<UnitAction>, worldScreen: WorldScreen)
addPromoteAction
Link copied to clipboard
private fun addPromoteAction(unit: MapUnit, actionList: ArrayList<UnitAction>)
addRemoveHeresyActions
Link copied to clipboard
private fun addRemoveHeresyActions(unit: MapUnit, actionList: ArrayList<UnitAction>, city: CityInfo)
addSetupAction
Link copied to clipboard
private fun addSetupAction(unit: MapUnit, actionList: ArrayList<UnitAction>)
addSleepActions
Link copied to clipboard
private fun addSleepActions(actionList: ArrayList<UnitAction>, unit: MapUnit, showingAdditionalActions: Boolean)
addSpreadReligionActions
Link copied to clipboard
fun addSpreadReligionActions(unit: MapUnit, actionList: ArrayList<UnitAction>, city: CityInfo)
addStatsPerGreatPersonUsage
Link copied to clipboard
fun addStatsPerGreatPersonUsage(unit: MapUnit)
addSwapAction
Link copied to clipboard
private fun addSwapAction(unit: MapUnit, actionList: ArrayList<UnitAction>, worldScreen: WorldScreen)
addToggleActionsAction
Link copied to clipboard
private fun addToggleActionsAction(unit: MapUnit, actionList: ArrayList<UnitAction>, unitTable: UnitTable)
addUnitUpgradeAction
Link copied to clipboard
private fun addUnitUpgradeAction(unit: MapUnit, actionList: ArrayList<UnitAction>)
canPillage
Link copied to clipboard
fun canPillage(unit: MapUnit, tile: TileInfo): Boolean
equals
Link copied to clipboard
open operator fun equals(other: Any?): Boolean
getAdditionalActions
Link copied to clipboard
private fun getAdditionalActions(unit: MapUnit, worldScreen: WorldScreen): List<UnitAction>
getAncientRuinsUpgradeAction
Link copied to clipboard
fun getAncientRuinsUpgradeAction(unit: MapUnit): UnitAction?
getEnhanceReligionAction
Link copied to clipboard
fun getEnhanceReligionAction(unit: MapUnit): () -> Unit
getFoundCityAction
Link copied to clipboard
fun getFoundCityAction(unit: MapUnit, tile: TileInfo): UnitAction?

Produce a UnitAction for founding a city.

getFoundReligionAction
Link copied to clipboard
fun getFoundReligionAction(unit: MapUnit): () -> Unit
getGiftAction
Link copied to clipboard
fun getGiftAction(unit: MapUnit, tile: TileInfo): UnitAction?
getImprovementConstructionActions
Link copied to clipboard
fun getImprovementConstructionActions(unit: MapUnit, tile: TileInfo): ArrayList<UnitAction>
getNormalActions
Link copied to clipboard
private fun getNormalActions(unit: MapUnit, worldScreen: WorldScreen): List<UnitAction>
getPillageAction
Link copied to clipboard
fun getPillageAction(unit: MapUnit): UnitAction?
getUnitActions
Link copied to clipboard
fun getUnitActions(unit: MapUnit, worldScreen: WorldScreen): List<UnitAction>
getUpgradeAction
Link copied to clipboard
fun getUpgradeAction(unit: MapUnit, isFree: Boolean = false): UnitAction?
getWaterImprovementAction
Link copied to clipboard
fun getWaterImprovementAction(unit: MapUnit): UnitAction?
hashCode
Link copied to clipboard
open fun hashCode(): Int
takeOverTilesAround
Link copied to clipboard
private fun takeOverTilesAround(unit: MapUnit)
testPromiseNotToSettle
Link copied to clipboard
private fun testPromiseNotToSettle(civInfo: CivilizationInfo, tile: TileInfo): String?

Checks whether a civ founding a city on a certain tile would break a promise.

toString
Link copied to clipboard
open fun toString(): String
useActionWithLimitedUses
Link copied to clipboard
private fun useActionWithLimitedUses(unit: MapUnit, action: String)

Sources

jvm source
Link copied to clipboard