name
name: (KitType) -> stringThe constant's name as declared.
KitType.valueOf(…)
KitType.HEAD
KitType.CAPE| Method | Returns | Description |
|---|---|---|
name() | string | The constant's name as declared. |
ordinal() | number | The constant's 0-based position in values(). |
toString() | string | name(); tostring(c) answers the same. |
compareTo(KitType) | number | This ordinal less other's. |
equals(any) | boolean | Whether other is this constant. == answers the same. |
getIndex() | number | This constant's getIndex() value, listed on each constant. |
values() | {KitType} | Every constant in ordinal order, as a 1-based array: the same frozen array every values() call, so table.clone it before changing it. |
valueOf(string) | KitType | valueOf(name): the constant named name; any other name is an error. |
| Field | Type | Description |
|---|---|---|
HEAD | KitType | HEAD: ordinal 0; getIndex() 0. |
CAPE | KitType | CAPE: ordinal 1; getIndex() 1. |
AMULET | KitType | AMULET: ordinal 2; getIndex() 2. |
WEAPON | KitType | WEAPON: ordinal 3; getIndex() 3. |
TORSO | KitType | TORSO: ordinal 4; getIndex() 4. |
SHIELD | KitType | SHIELD: ordinal 5; getIndex() 5. |
ARMS | KitType | ARMS: ordinal 6; getIndex() 6. |
LEGS | KitType | LEGS: ordinal 7; getIndex() 7. |
HAIR | KitType | HAIR: ordinal 8; getIndex() 8. |
HANDS | KitType | HANDS: ordinal 9; getIndex() 9. |
BOOTS | KitType | BOOTS: ordinal 10; getIndex() 10. |
JAW | KitType | JAW: ordinal 11; getIndex() 11. |
| Method | Returns | Description |
|---|---|---|
KitTypeClass.valueOf | KitType | valueOf(name): the constant named name; any other name is an error. |
KitTypeClass.values | {KitType} | Every constant in ordinal order, as a 1-based array: the same frozen array every values() call, so table.clone it before changing it. |
namename: (KitType) -> stringThe constant's name as declared.
ordinalordinal: (KitType) -> numberThe constant's 0-based position in values().
toStringtoString: (KitType) -> stringname(); tostring(c) answers the same.
compareTocompareTo: (KitType, KitType) -> numberThis ordinal less other's.
equalsequals: (KitType, any) -> booleanWhether other is this constant. == answers the same.
getIndexgetIndex: (KitType) -> numberThis constant's getIndex() value, listed on each constant.
valuesvalues: () -> {KitType}Every constant in ordinal order, as a 1-based array: the same frozen array every values() call, so table.clone it before changing it.
valueOfvalueOf: (string) -> KitTypevalueOf(name): the constant named name; any other name is an error.