Skill

The skills, as constants: Skill.ATTACK.

Methods
9
Fields
24

Getting one

Skill.valueOf(…)
Skill.ATTACK
Skill.DEFENCE

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(Skill)numberThis ordinal less other's.
equals(any)booleanWhether other is this constant. == answers the same.
getName()stringThis constant's getName() value, listed on each constant.
isMembers()booleanThis 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)SkillvalueOf(name): the constant named name; any other name is an error.

Fields

FieldTypeDescription
ATTACKSkillATTACK: ordinal 0; getName() "Attack", isMembers() false.
DEFENCESkillDEFENCE: ordinal 1; getName() "Defence", isMembers() false.
STRENGTHSkillSTRENGTH: ordinal 2; getName() "Strength", isMembers() false.
HITPOINTSSkillHITPOINTS: ordinal 3; getName() "Hitpoints", isMembers() false.
RANGEDSkillRANGED: ordinal 4; getName() "Ranged", isMembers() false.
PRAYERSkillPRAYER: ordinal 5; getName() "Prayer", isMembers() false.
MAGICSkillMAGIC: ordinal 6; getName() "Magic", isMembers() false.
COOKINGSkillCOOKING: ordinal 7; getName() "Cooking", isMembers() false.
WOODCUTTINGSkillWOODCUTTING: ordinal 8; getName() "Woodcutting", isMembers() false.
FLETCHINGSkillFLETCHING: ordinal 9; getName() "Fletching", isMembers() true.
FISHINGSkillFISHING: ordinal 10; getName() "Fishing", isMembers() false.
FIREMAKINGSkillFIREMAKING: ordinal 11; getName() "Firemaking", isMembers() false.
CRAFTINGSkillCRAFTING: ordinal 12; getName() "Crafting", isMembers() false.
SMITHINGSkillSMITHING: ordinal 13; getName() "Smithing", isMembers() false.
MININGSkillMINING: ordinal 14; getName() "Mining", isMembers() false.
HERBLORESkillHERBLORE: ordinal 15; getName() "Herblore", isMembers() true.
AGILITYSkillAGILITY: ordinal 16; getName() "Agility", isMembers() true.
THIEVINGSkillTHIEVING: ordinal 17; getName() "Thieving", isMembers() true.
SLAYERSkillSLAYER: ordinal 18; getName() "Slayer", isMembers() true.
FARMINGSkillFARMING: ordinal 19; getName() "Farming", isMembers() true.
RUNECRAFTSkillRUNECRAFT: ordinal 20; getName() "Runecraft", isMembers() false.
HUNTERSkillHUNTER: ordinal 21; getName() "Hunter", isMembers() true.
CONSTRUCTIONSkillCONSTRUCTION: ordinal 22; getName() "Construction", isMembers() true.
SAILINGSkillSAILING: ordinal 23; getName() "Sailing", isMembers() true.

Returned by

MethodReturnsDescription
FakeXpDrop.getSkillSkillThe skill.
SkillClass.valueOfSkillvalueOf(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.getSkillSkillThe skill.

Method details

name

name: (Skill) -> string

The constant's name as declared.

ordinal

ordinal: (Skill) -> number

The constant's 0-based position in values().

toString

toString: (Skill) -> string

name(); tostring(c) answers the same.

equals

equals: (Skill, any) -> boolean

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

getName

getName: (Skill) -> string

This constant's getName() value, listed on each constant.

isMembers

isMembers: (Skill) -> boolean

This constant's isMembers() value, listed on each constant.

values

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

valueOf: (string) -> Skill

valueOf(name): the constant named name; any other name is an error.