View Javadoc

1   /*
2    @See License.txt@
3    */
4   
5   package spellcast.spell;
6   
7   import spellcast.beings.IBeing;
8   import spellcast.beings.IWizard;
9   import spellcast.gestures.Gesture;
10  
11  /***
12   * This spell protects the subject from all attacks from monsters (that is,
13   * creatures created by a summons class spell), from missile spells, and from
14   * stabs by wizards. The shield lasts for that turn only, but one shield will
15   * cover all such attacks made against the subject that turn.
16   *
17   * @author Barrie Treloar
18   * @revision $Revision: 1.1 $
19   */
20  public class ShieldSpell extends SpellImpl {
21  
22      /*** The <code>Gesture</code> s for this <code>ISpell</code>. */
23      private static final Gesture[] GESTURES = { Gesture.PALM };
24  
25      /*** The <code>ISpell</code>'s description. */
26      private static final String DESCRIPTION = "spell.Shield";
27  
28      /***
29       * Create a <code>Shield</code> <code>ISpell</code>.
30       *
31       * @param theCaster
32       *            the Caster of the <code>ISpell</code>.
33       * @param theTarget
34       *            the target <code>IBeing</code> of the <code>ISpell</code>.
35       */
36      public ShieldSpell(final IWizard theCaster, final IBeing theTarget) {
37          super(theCaster, theTarget, GESTURES, DESCRIPTION);
38      }
39  
40  }