Class: Elvarg::Hiscores::Skill
- Inherits:
-
Stats::Skill
- Object
- Stats::Skill
- Elvarg::Hiscores::Skill
- Defined in:
- lib/hiscores/skill.rb
Overview
Represents a Skill on the Hiscores
Instance Attribute Summary collapse
-
#exp ⇒ Object
readonly
The experience of the Skill the Player has on the Hiscores.
-
#level ⇒ Object
readonly
The level of the Skill the Player has on the Hiscores.
-
#rank ⇒ Object
readonly
The rank of the Skill the Player has on the Hiscores.
Attributes inherited from Stats::Skill
Instance Method Summary collapse
-
#initialize(symbol, id = 0, rank = -1,, level = 1, exp = 0) ⇒ Skill
constructor
Creates a Hiscores Skill object.
Methods inherited from Stats::Skill
#combat?, #free?, #member?, #skiller_friendly?
Constructor Details
#initialize(symbol, id = 0, rank = -1,, level = 1, exp = 0) ⇒ Skill
Creates a Hiscores Skill object
26 27 28 29 30 31 |
# File 'lib/hiscores/skill.rb', line 26 def initialize(symbol, id = 0, rank = -1, level = 1, exp = 0) super(symbol, id) @rank = rank @level = level @exp = exp end |
Instance Attribute Details
#exp ⇒ Object (readonly)
The experience of the Skill the Player has on the Hiscores
13 14 15 |
# File 'lib/hiscores/skill.rb', line 13 def exp @exp end |
#level ⇒ Object (readonly)
The level of the Skill the Player has on the Hiscores
11 12 13 |
# File 'lib/hiscores/skill.rb', line 11 def level @level end |
#rank ⇒ Object (readonly)
The rank of the Skill the Player has on the Hiscores
9 10 11 |
# File 'lib/hiscores/skill.rb', line 9 def rank @rank end |