IHasUniques

interface IHasUniques

Common interface for all 'ruleset objects' that have Uniques, like BaseUnit, Nation, etc.

Functions

equals
Link copied to clipboard
open operator fun equals(other: Any?): Boolean
getMatchingUniques
Link copied to clipboard
open fun getMatchingUniques(uniqueType: UniqueType, stateForConditionals: StateForConditionals? = null): Sequence<Unique>
open fun getMatchingUniques(uniqueTemplate: String, stateForConditionals: StateForConditionals? = null): Sequence<Unique>
getUniqueTarget
Link copied to clipboard
abstract fun getUniqueTarget(): UniqueTarget

Technically not currently needed, since the unique target can be retrieved from every unique in the uniqueObjects, But making this a function is relevant for future "unify Unciv object" plans ;)

hashCode
Link copied to clipboard
open fun hashCode(): Int
hasUnique
Link copied to clipboard
open fun hasUnique(uniqueType: UniqueType, stateForConditionals: StateForConditionals? = null): Boolean
open fun hasUnique(uniqueTemplate: String, stateForConditionals: StateForConditionals? = null): Boolean
toString
Link copied to clipboard
open fun toString(): String

Properties

uniqueObjects
Link copied to clipboard
abstract val uniqueObjects: List<Unique>
uniques
Link copied to clipboard
abstract var uniques: ArrayList<String>

Inheritors

INonPerpetualConstruction
Link copied to clipboard
Era
Link copied to clipboard
ModOptions
Link copied to clipboard
IRulesetObject
Link copied to clipboard
UnitType
Link copied to clipboard

Sources

jvm source
Link copied to clipboard