OGS Java API Spec

ogs.spells
Class Enchantment

java.lang.Object
  |
  +--ogs.support.Object
        |
        +--ogs.magic.Spell
              |
              +--ogs.spells.Enchantment
All Implemented Interfaces:
EventListener

public abstract class Enchantment
extends Spell

A spell in the Enchantment school. This class is the abstract base class for all Enchantment spells.


Field Summary
 
Fields inherited from class ogs.support.Object
listeners
 
Constructor Summary
Enchantment()
           
 
Method Summary
 School getSchool()
          Determine the school (or subschool) for this type of spell.
 
Methods inherited from class ogs.magic.Spell
addMetamagicFeat, getComponents, getDescriptors, getMetamagicSlots, getRange
 
Methods inherited from class ogs.support.Object
addListener, handleEvent, notifyListeners, removeListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Enchantment

public Enchantment()
Method Detail

getSchool

public School getSchool()
Determine the school (or subschool) for this type of spell. All Enchantment spells are in the Enchantment school or an Enchantment subschool. Derived classes may override this function to return an Enchantment subschool.

Specified by:
getSchool in class Spell
Returns:
Enchantment school.

OGS Java API Spec