spellcast.spell
Class SpellImpl

java.lang.Object
  extended by spellcast.spell.SpellImpl
All Implemented Interfaces:
ISpell
Direct Known Subclasses:
ShieldSpell

public class SpellImpl
extends java.lang.Object
implements ISpell

The default implementation of ISpell.

Version:
$Revision: 1.1 $
Author:
Barrie Treloar

Constructor Summary
protected SpellImpl(IWizard theCaster, IBeing theTarget, Gesture[] theGestures, java.lang.String theDescription)
          Creates the default implementation of SpellImpl.
 
Method Summary
 IWizard getCaster()
          Return the IWizard who cast this ISpell.
 java.lang.String getDescription()
          Return the description of this ISpell.
 Gesture[] getGestures()
          Return the Gestures needed to cast this ISpell.
 IBeing getTarget()
          Return the target IBeing of this ISpell.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SpellImpl

protected SpellImpl(IWizard theCaster,
                    IBeing theTarget,
                    Gesture[] theGestures,
                    java.lang.String theDescription)
Creates the default implementation of SpellImpl.

Parameters:
theCaster - the IWizard caster of the ISpell.
theTarget - the target IBeing of the ISpell.
theGestures - the Gesture s needed to cast this ISpell.
theDescription - the description of this ISpell.
Method Detail

getCaster

public final IWizard getCaster()
Return the IWizard who cast this ISpell.

Specified by:
getCaster in interface ISpell
Returns:
the IWizard who cast this ISpell.

getDescription

public final java.lang.String getDescription()
Return the description of this ISpell.

Specified by:
getDescription in interface ISpell
Returns:
the description of this ISpell.

getGestures

public final Gesture[] getGestures()
Return the Gestures needed to cast this ISpell.

Specified by:
getGestures in interface ISpell
Returns:
the Gestures needed to cast this ISpell.

getTarget

public final IBeing getTarget()
Return the target IBeing of this ISpell.

Specified by:
getTarget in interface ISpell
Returns:
the target IBeing of this ISpell.


Copyright © 2001-2005 Spellcast. All Rights Reserved.