OGS Java API Spec

ogs.magic.feats
Class SilentSpell

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

public class SilentSpell
extends MetamagicFeat

A metamagic feat that allows spells to be cast without a verbal 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
SilentSpell()
          Create a new Silent 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

SilentSpell

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

Method Detail

getAddedLevels

public int getAddedLevels()
Determine number of levels added to normal spell level. A silenced 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. Silent Spell feats can only be attached to spells that have a verbal component. If the spell has a verbal 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 verbal component back into the list of components for the spell.

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

OGS Java API Spec