Class: Lich::Gemstone::SpellRanks
- Inherits:
-
Object
- Object
- Lich::Gemstone::SpellRanks
- Defined in:
- documented/gemstone/spellranks.rb
Overview
Represents the spell ranks for various classes in the Lich project.
This class manages loading and saving spell rank data.
Instance Attribute Summary collapse
-
#arcanesymbols ⇒ Object
Returns the value of attribute arcanesymbols.
-
#bard ⇒ Object
Returns the value of attribute bard.
-
#cleric ⇒ Object
Returns the value of attribute cleric.
-
#empath ⇒ Object
Returns the value of attribute empath.
-
#magicitemuse ⇒ Object
Returns the value of attribute magicitemuse.
-
#majorelemental ⇒ Object
Returns the value of attribute majorelemental.
-
#majorspiritual ⇒ Object
Returns the value of attribute majorspiritual.
-
#minorelemental ⇒ Object
Returns the value of attribute minorelemental.
-
#minormental ⇒ Object
Returns the value of attribute minormental.
-
#minorspiritual ⇒ Object
Returns the value of attribute minorspiritual.
-
#monk ⇒ Object
Returns the value of attribute monk.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#paladin ⇒ Object
Returns the value of attribute paladin.
-
#ranger ⇒ Object
Returns the value of attribute ranger.
-
#sorcerer ⇒ Object
Returns the value of attribute sorcerer.
-
#wizard ⇒ Object
Returns the value of attribute wizard.
Instance Method Summary collapse
-
#initialize(name) ⇒ void
constructor
Initializes a new SpellRanks object with the given name.
Constructor Details
#initialize(name) ⇒ void
Initializes a new SpellRanks object with the given name.
97 98 99 100 101 102 |
# File 'documented/gemstone/spellranks.rb', line 97 def initialize(name) SpellRanks.load unless @@loaded @name = name @minorspiritual, @majorspiritual, @cleric, @minorelemental, @majorelemental, @ranger, @sorcerer, @wizard, @bard, @empath, @paladin, @minormental, @arcanesymbols, @magicitemuse = 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 @@list.push(self) end |
Instance Attribute Details
#arcanesymbols ⇒ Object
Returns the value of attribute arcanesymbols.
14 15 16 |
# File 'documented/gemstone/spellranks.rb', line 14 def arcanesymbols @arcanesymbols end |
#bard ⇒ Object
Returns the value of attribute bard.
14 15 16 |
# File 'documented/gemstone/spellranks.rb', line 14 def @bard end |
#cleric ⇒ Object
Returns the value of attribute cleric.
14 15 16 |
# File 'documented/gemstone/spellranks.rb', line 14 def cleric @cleric end |
#empath ⇒ Object
Returns the value of attribute empath.
14 15 16 |
# File 'documented/gemstone/spellranks.rb', line 14 def empath @empath end |
#magicitemuse ⇒ Object
Returns the value of attribute magicitemuse.
14 15 16 |
# File 'documented/gemstone/spellranks.rb', line 14 def magicitemuse @magicitemuse end |
#majorelemental ⇒ Object
Returns the value of attribute majorelemental.
14 15 16 |
# File 'documented/gemstone/spellranks.rb', line 14 def majorelemental @majorelemental end |
#majorspiritual ⇒ Object
Returns the value of attribute majorspiritual.
14 15 16 |
# File 'documented/gemstone/spellranks.rb', line 14 def majorspiritual @majorspiritual end |
#minorelemental ⇒ Object
Returns the value of attribute minorelemental.
14 15 16 |
# File 'documented/gemstone/spellranks.rb', line 14 def minorelemental @minorelemental end |
#minormental ⇒ Object
Returns the value of attribute minormental.
14 15 16 |
# File 'documented/gemstone/spellranks.rb', line 14 def minormental @minormental end |
#minorspiritual ⇒ Object
Returns the value of attribute minorspiritual.
14 15 16 |
# File 'documented/gemstone/spellranks.rb', line 14 def minorspiritual @minorspiritual end |
#monk ⇒ Object
Returns the value of attribute monk.
14 15 16 |
# File 'documented/gemstone/spellranks.rb', line 14 def monk @monk end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
13 14 15 |
# File 'documented/gemstone/spellranks.rb', line 13 def name @name end |
#paladin ⇒ Object
Returns the value of attribute paladin.
14 15 16 |
# File 'documented/gemstone/spellranks.rb', line 14 def paladin @paladin end |
#ranger ⇒ Object
Returns the value of attribute ranger.
14 15 16 |
# File 'documented/gemstone/spellranks.rb', line 14 def ranger @ranger end |
#sorcerer ⇒ Object
Returns the value of attribute sorcerer.
14 15 16 |
# File 'documented/gemstone/spellranks.rb', line 14 def sorcerer @sorcerer end |
#wizard ⇒ Object
Returns the value of attribute wizard.
14 15 16 |
# File 'documented/gemstone/spellranks.rb', line 14 def wizard @wizard end |