name
name: (Skill) -> stringThe constant's name as declared.
The skills, as constants: Skill.ATTACK.
Skill.valueOf(…)
Skill.ATTACK
Skill.DEFENCE| 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(Skill) | number | This ordinal less other's. |
equals(any) | boolean | Whether other is this constant. == answers the same. |
getName() | string | This constant's getName() value, listed on each constant. |
isMembers() | boolean | This constant's isMembers() value, listed on each constant. |
values() | {Skill} | 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) | Skill | valueOf(name): the constant named name; any other name is an error. |
| Field | Type | Description |
|---|---|---|
ATTACK | Skill | ATTACK: ordinal 0; getName() "Attack", isMembers() false. |
DEFENCE | Skill | DEFENCE: ordinal 1; getName() "Defence", isMembers() false. |
STRENGTH | Skill | STRENGTH: ordinal 2; getName() "Strength", isMembers() false. |
HITPOINTS | Skill | HITPOINTS: ordinal 3; getName() "Hitpoints", isMembers() false. |
RANGED | Skill | RANGED: ordinal 4; getName() "Ranged", isMembers() false. |
PRAYER | Skill | PRAYER: ordinal 5; getName() "Prayer", isMembers() false. |
MAGIC | Skill | MAGIC: ordinal 6; getName() "Magic", isMembers() false. |
COOKING | Skill | COOKING: ordinal 7; getName() "Cooking", isMembers() false. |
WOODCUTTING | Skill | WOODCUTTING: ordinal 8; getName() "Woodcutting", isMembers() false. |
FLETCHING | Skill | FLETCHING: ordinal 9; getName() "Fletching", isMembers() true. |
FISHING | Skill | FISHING: ordinal 10; getName() "Fishing", isMembers() false. |
FIREMAKING | Skill | FIREMAKING: ordinal 11; getName() "Firemaking", isMembers() false. |
CRAFTING | Skill | CRAFTING: ordinal 12; getName() "Crafting", isMembers() false. |
SMITHING | Skill | SMITHING: ordinal 13; getName() "Smithing", isMembers() false. |
MINING | Skill | MINING: ordinal 14; getName() "Mining", isMembers() false. |
HERBLORE | Skill | HERBLORE: ordinal 15; getName() "Herblore", isMembers() true. |
AGILITY | Skill | AGILITY: ordinal 16; getName() "Agility", isMembers() true. |
THIEVING | Skill | THIEVING: ordinal 17; getName() "Thieving", isMembers() true. |
SLAYER | Skill | SLAYER: ordinal 18; getName() "Slayer", isMembers() true. |
FARMING | Skill | FARMING: ordinal 19; getName() "Farming", isMembers() true. |
RUNECRAFT | Skill | RUNECRAFT: ordinal 20; getName() "Runecraft", isMembers() false. |
HUNTER | Skill | HUNTER: ordinal 21; getName() "Hunter", isMembers() true. |
CONSTRUCTION | Skill | CONSTRUCTION: ordinal 22; getName() "Construction", isMembers() true. |
SAILING | Skill | SAILING: ordinal 23; getName() "Sailing", isMembers() true. |
| Method | Returns | Description |
|---|---|---|
FakeXpDrop.getSkill | Skill | The skill. |
SkillClass.valueOf | Skill | valueOf(name): the constant named name; any other name is an error. |
SkillClass.values | {Skill} | Every constant in ordinal order, as a 1-based array: the same frozen array every values() call, so table.clone it before changing it. |
StatChanged.getSkill | Skill | The skill. |
namename: (Skill) -> stringThe constant's name as declared.
ordinalordinal: (Skill) -> numberThe constant's 0-based position in values().
toStringtoString: (Skill) -> stringname(); tostring(c) answers the same.
compareTocompareTo: (Skill, Skill) -> numberThis ordinal less other's.
equalsequals: (Skill, any) -> booleanWhether other is this constant. == answers the same.
getNamegetName: (Skill) -> stringThis constant's getName() value, listed on each constant.
isMembersisMembers: (Skill) -> booleanThis constant's isMembers() value, listed on each constant.
valuesvalues: () -> {Skill}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) -> SkillvalueOf(name): the constant named name; any other name is an error.