Positivity

Methods
7
Fields
5

Getting one

Positivity.valueOf(…)
Positivity.WORSE
Positivity.NO_CHANGE

Methods

MethodReturnsDescription
name()stringThe constant's name as declared.
ordinal()numberThe constant's 0-based position in values().
toString()stringname(); tostring(c) answers the same.
compareTo(Positivity)numberThis ordinal less other's.
equals(any)booleanWhether other is this constant. == answers the same.
values(){Positivity}Every constant in ordinal order, as a new 1-based array.
valueOf(string)PositivityThe constant named name; any other name is an error.

Fields

FieldTypeDescription
WORSEPositivityWORSE: ordinal 0, the stat goes down.
NO_CHANGEPositivityNO_CHANGE: ordinal 1.
BETTER_CAPPEDPositivityBETTER_CAPPED: ordinal 2, better, and every boost is at its cap.
BETTER_SOMECAPPEDPositivityBETTER_SOMECAPPED: ordinal 3, better, some boosts capped.
BETTER_UNCAPPEDPositivityBETTER_UNCAPPED: ordinal 4, better, nothing capped.

Returned by

MethodReturnsDescription
PositivityClass.valueOfPositivityThe constant named name; any other name is an error.
PositivityClass.values{Positivity}Every constant in ordinal order, as a new 1-based array.
StatChange.getPositivityPositivity?How good the change is, or nil before one is set.
StatsChanges.getPositivityPositivity?How good the set is overall, or nil when set to none.

Method details

equals

equals: (Positivity, any) -> boolean

Whether other is this constant. == answers the same.

values

values: () -> {Positivity}

Every constant in ordinal order, as a new 1-based array.

valueOf

valueOf: (string) -> Positivity

The constant named name; any other name is an error.