getFoundCityAction

fun getFoundCityAction(unit: MapUnit, tile: TileInfo): UnitAction?

Produce a UnitAction for founding a city.

Return

null if impossible (the unit lacks the ability to found), or else a UnitAction 'defining' the founding. The action field will be null if the action cannot be done here and now (no movement left, too close to another city).

Parameters

unit

The unit to do the founding.

tile

The tile to found a city on.

Sources

jvm source
Link copied to clipboard