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

#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
  @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