OGS Java API Spec

ogs.magic.feats
Class EnlargeSpell

java.lang.Object
  |
  +--ogs.support.Object
        |
        +--ogs.core.Feature
              |
              +--ogs.core.Feat
                    |
                    +--ogs.magic.MetamagicFeat
                          |
                          +--ogs.magic.feats.EnlargeSpell
All Implemented Interfaces:
EventListener

public class EnlargeSpell
extends MetamagicFeat

A metamagic feat that doubles the range or area of a spell.


Field Summary
 
Fields inherited from class ogs.core.Feat
COMBAT, CUMULATIVE, EXCLUSIVE, GENERAL, MAGIC, REPEATABLE, SPECIAL
 
Fields inherited from class ogs.support.Object
listeners
 
Constructor Summary
EnlargeSpell()
          Create a new Enlarge Spell feat.
 
Method Summary
 boolean attachSpell(Spell spell)
          Attach this metamagic feat to a spell.
 boolean detachSpell(Spell spell)
          Detach this metamagic feat from a spell.
 int getAddedLevels()
          Determine number of levels added to normal spell level.
 
Methods inherited from class ogs.magic.MetamagicFeat
attachobject, getCompatibility, getGroup
 
Methods inherited from class ogs.core.Feat
canAttach, findFeat, getSlots, getSlotsLevel
 
Methods inherited from class ogs.core.Feature
attachObject, canDetach, detachObject, getObject
 
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

EnlargeSpell

public EnlargeSpell()
Create a new Enlarge Spell feat. The new Enlarge Spell feat is not attached to any spells.

Method Detail

getAddedLevels

public int getAddedLevels()
Determine number of levels added to normal spell level. An enlarged spell uses up a spell slot one level higher than the normal level of the spell.

Specified by:
getAddedLevels in class MetamagicFeat
Returns:
Number of added levels.

attachSpell

public boolean attachSpell(Spell spell)
Attach this metamagic feat to a spell. EnlargeSpell feats can only be attached to spells that have an measureable area and/or range. If the spell has a measurable area, the area is doubled. Otherwise, the measureable range of the spell is doubled.

Returns:
True if this feat is attached to the spell.

detachSpell

public boolean detachSpell(Spell spell)
Detach this metamagic feat from a spell. This method restores the original area and/or range of the spell.

Returns:
True if this feat is detached to the spell.

OGS Java API Spec