Class: Lich::Gemstone::SpellRanks

Inherits:
Object
  • Object
show all
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.

See Also:

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name) ⇒ void

Initializes a new SpellRanks object with the given name.

Parameters:

  • name (String)

    the name of the spell rank



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

#arcanesymbolsObject

Returns the value of attribute arcanesymbols.



14
15
16
# File 'documented/gemstone/spellranks.rb', line 14

def arcanesymbols
  @arcanesymbols
end

#bardObject

Returns the value of attribute bard.



14
15
16
# File 'documented/gemstone/spellranks.rb', line 14

def bard
  @bard
end

#clericObject

Returns the value of attribute cleric.



14
15
16
# File 'documented/gemstone/spellranks.rb', line 14

def cleric
  @cleric
end

#empathObject

Returns the value of attribute empath.



14
15
16
# File 'documented/gemstone/spellranks.rb', line 14

def empath
  @empath
end

#magicitemuseObject

Returns the value of attribute magicitemuse.



14
15
16
# File 'documented/gemstone/spellranks.rb', line 14

def magicitemuse
  @magicitemuse
end

#majorelementalObject

Returns the value of attribute majorelemental.



14
15
16
# File 'documented/gemstone/spellranks.rb', line 14

def majorelemental
  @majorelemental
end

#majorspiritualObject

Returns the value of attribute majorspiritual.



14
15
16
# File 'documented/gemstone/spellranks.rb', line 14

def majorspiritual
  @majorspiritual
end

#minorelementalObject

Returns the value of attribute minorelemental.



14
15
16
# File 'documented/gemstone/spellranks.rb', line 14

def minorelemental
  @minorelemental
end

#minormentalObject

Returns the value of attribute minormental.



14
15
16
# File 'documented/gemstone/spellranks.rb', line 14

def minormental
  @minormental
end

#minorspiritualObject

Returns the value of attribute minorspiritual.



14
15
16
# File 'documented/gemstone/spellranks.rb', line 14

def minorspiritual
  @minorspiritual
end

#monkObject

Returns the value of attribute monk.



14
15
16
# File 'documented/gemstone/spellranks.rb', line 14

def monk
  @monk
end

#nameObject (readonly)

Returns the value of attribute name.



13
14
15
# File 'documented/gemstone/spellranks.rb', line 13

def name
  @name
end

#paladinObject

Returns the value of attribute paladin.



14
15
16
# File 'documented/gemstone/spellranks.rb', line 14

def paladin
  @paladin
end

#rangerObject

Returns the value of attribute ranger.



14
15
16
# File 'documented/gemstone/spellranks.rb', line 14

def ranger
  @ranger
end

#sorcererObject

Returns the value of attribute sorcerer.



14
15
16
# File 'documented/gemstone/spellranks.rb', line 14

def sorcerer
  @sorcerer
end

#wizardObject

Returns the value of attribute wizard.



14
15
16
# File 'documented/gemstone/spellranks.rb', line 14

def wizard
  @wizard
end