RPG::Class

Data class for class.

Superclass

Attributes

id

The class's ID.

name

The class name.

position

The class position (0: front, 1: middle, 2: rear).

weapon_set

Array containing IDs for equippable weapons.

armor_set

Array containing IDs for equippable armor.

element_ranks

Level of elemental effectiveness. 1-dimensional array using element IDs as subscripts (Table), with 6 levels (0: A, 1: B, 2: C, 3: D, 4: E, 5: F).

state_ranks

Level of status effectiveness. 1-dimensional array using status IDs as subscripts (Table), with 6 levels (0: A, 1: B, 2: C, 3: D, 4: E, 5: F).

learnings

Skills to Learn. An RPG::Class::Learning array.

Inner Class

Definition

module RPG
  class Class
    def initialize
      @id = 0
      @name = ""
      @position = 0
      @weapon_set = []
      @armor_set = []
      @element_ranks = Table.new(1)
      @state_ranks = Table.new(1)
      @learnings = []
    end
    attr_accessor :id
    attr_accessor :name
    attr_accessor :position
    attr_accessor :weapon_set
    attr_accessor :armor_set
    attr_accessor :element_ranks
    attr_accessor :state_ranks
    attr_accessor :learnings
  end
end
Converted from CHM to HTML with chm2web Pro 2.85 (unicode)