Package com.unciv.models

Types

AttackableTile
Link copied to clipboard
class AttackableTile(tileToAttackFrom: TileInfo, tileToAttack: TileInfo, movementLeftAfterMovingToAttackTile: Float)
Counter
Link copied to clipboard
open class Counter<K> : LinkedHashMap<K, Int>
CrashReport
Link copied to clipboard
data class CrashReport(gameInfo: String, mods: LinkedHashSet<String>, version: String)
MultiHashMap
Link copied to clipboard
class MultiHashMap<K, V> : LinkedHashMap<K, ArrayList<V>>
Religion
Link copied to clipboard
class Religion : INamed

Data object for Religions

Tutorial
Link copied to clipboard
enum Tutorial(value: String, isCivilopedia: Boolean) : Enum<Tutorial>
UncivSound
Link copied to clipboard
class UncivSound(type: UncivSoundConstants, filename: String?)

Represents an Unciv Sound, either from a predefined set or custom with a specified filename.

UncivSoundConstants
Link copied to clipboard
private enum UncivSoundConstants(value: String) : Enum<UncivSoundConstants>
UnitAction
Link copied to clipboard
data class UnitAction(type: UnitActionType, title: String, isCurrentAction: Boolean, uncivSound: UncivSound, action: () -> Unit?)

Unit Actions - class - carries dynamic data and actual execution. Static properties are in UnitActionType. Note this is for the buttons offering actions, not the ongoing action stored with a MapUnit

UnitActionType
Link copied to clipboard
enum UnitActionType(value: String, imageGetter: () -> Actor?, key: KeyCharAndCode, uncivSound: UncivSound) : Enum<UnitActionType>

Unit Actions - generic enum with static properties