Stats
open class Stats(production: Float, food: Float, gold: Float, science: Float, culture: Float, happiness: Float, faith: Float) : Iterable<Stats.StatValuePair>
Content copied to clipboard
A container for the seven basic "currencies" in Unciv, Mutable, allowing for easy merging of sources and applying bonuses.
Supports e.g. for ((key,value) in <Stats>)
- the iterator will skip zero values automatically.
Also possible: <Stats>
.values.sum() and similar aggregates over a Sequence
Constructors
Types
Functions
asSequence
Link copied to clipboard
forEach
Link copied to clipboard
iterator
Link copied to clipboard
Returns an iterator over the elements of this object, wrapped as StatValuePairs
spliterator
Link copied to clipboard
timesInPlace
Link copied to clipboard
Multiplies each value of this instance by number in place
toStringWithDecimals
Link copied to clipboard
Properties
Inheritors
NamedStats
Link copied to clipboard
Sources
jvm source
Link copied to clipboard