name
name: (HeadIcon) -> stringThe constant's name as declared.
HeadIcon.valueOf(…)
HeadIcon.MELEE
HeadIcon.RANGED| 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(HeadIcon) | number | This ordinal less other's. |
equals(any) | boolean | Whether other is this constant. == answers the same. |
values() | {HeadIcon} | 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) | HeadIcon | valueOf(name): the constant named name; any other name is an error. |
| Field | Type | Description |
|---|---|---|
MELEE | HeadIcon | MELEE: ordinal 0. |
RANGED | HeadIcon | RANGED: ordinal 1. |
MAGIC | HeadIcon | MAGIC: ordinal 2. |
RETRIBUTION | HeadIcon | RETRIBUTION: ordinal 3. |
SMITE | HeadIcon | SMITE: ordinal 4. |
REDEMPTION | HeadIcon | REDEMPTION: ordinal 5. |
RANGE_MAGE | HeadIcon | RANGE_MAGE: ordinal 6. |
RANGE_MELEE | HeadIcon | RANGE_MELEE: ordinal 7. |
MAGE_MELEE | HeadIcon | MAGE_MELEE: ordinal 8. |
RANGE_MAGE_MELEE | HeadIcon | RANGE_MAGE_MELEE: ordinal 9. |
WRATH | HeadIcon | WRATH: ordinal 10. |
SOUL_SPLIT | HeadIcon | SOUL_SPLIT: ordinal 11. |
DEFLECT_MELEE | HeadIcon | DEFLECT_MELEE: ordinal 12. |
DEFLECT_RANGE | HeadIcon | DEFLECT_RANGE: ordinal 13. |
DEFLECT_MAGE | HeadIcon | DEFLECT_MAGE: ordinal 14. |
| Method | Returns | Description |
|---|---|---|
HeadIconClass.valueOf | HeadIcon | valueOf(name): the constant named name; any other name is an error. |
HeadIconClass.values | {HeadIcon} | Every constant in ordinal order, as a 1-based array: the same frozen array every values() call, so table.clone it before changing it. |
Player.getOverheadIcon | HeadIcon? | The protection prayer over the player's head, nil for none. |
namename: (HeadIcon) -> stringThe constant's name as declared.
ordinalordinal: (HeadIcon) -> numberThe constant's 0-based position in values().
toStringtoString: (HeadIcon) -> stringname(); tostring(c) answers the same.
compareTocompareTo: (HeadIcon, HeadIcon) -> numberThis ordinal less other's.
equalsequals: (HeadIcon, any) -> booleanWhether other is this constant. == answers the same.
valuesvalues: () -> {HeadIcon}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) -> HeadIconvalueOf(name): the constant named name; any other name is an error.