OGS Java API Spec

ogs.magic.feats
Class StillSpell

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

public class StillSpell
extends MetamagicFeat

A metamagic feat that allows spells to be cast without a somantic component.


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
StillSpell()
          Create a new Still 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

StillSpell

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

Method Detail

getAddedLevels

public int getAddedLevels()
Determine number of levels added to normal spell level. A stilled 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. Still Spell feats can only be attached to spells that have a somantic component. If the spell has a somantic component, the component is removed from the list of components for the spell.

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

detachSpell

public boolean detachSpell(Spell spell)
Detach this metamagic feat from a spell. If this feat is attached to the spell, this method adds a somantic component back into the list of components for the spell.

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

OGS Java API Spec