Class: RPG::Class::Learning

Inherits:
Object
  • Object
show all
Defined in:
lib/rpg/class.rb

Overview

Data class for a [Class's Learned] skills.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeLearning


67
68
69
70
# File 'lib/rpg/class.rb', line 67

def initialize
  @level = 1
  @skill_id = 1
end

Instance Attribute Details

#levelObject

Skill level.


62
63
64
# File 'lib/rpg/class.rb', line 62

def level
  @level
end

#skill_idObject

The learned skill's ID.


65
66
67
# File 'lib/rpg/class.rb', line 65

def skill_id
  @skill_id
end