1
2
3
4 package spellcast.enchantment;
5
6 import spellcast.beings.IBeing;
7 import spellcast.beings.IWizard;
8
9
10 /***
11 * The Fear <code>Enchantment</code>.
12 *
13 * @author Barrie Treloar
14 * @version $Revision: 1.1 $
15 */
16 public class FearEnchantment extends EnchantmentImpl {
17 /*** Use serialVersionUID for interoperability. */
18 private static final long serialVersionUID = 1L;
19
20 /*** The duration for <code>FearEnchantment</code>. */
21 private static final int DURATION = 1;
22
23 /*** The description for <code>FearEnchantment</code>. */
24 private static final String DESCRIPTION =
25 "In the turn following the casting of this spell, the subject cannot "
26 + "perform a C, D, F or S gesture. This obviously has no effect on "
27 + "monsters. If the subject is also the subject of 'amnesia', "
28 + "'confusion', 'charm person', 'charm monster' or 'paralysis', then "
29 + "none of the spells work.";
30
31 /*** The name for <code>FearEnchantment</code>. */
32 private static final String NAME = "Fear";
33
34 /***
35 * Provided for serialization, do not use as a constructor.
36 */
37 protected FearEnchantment() {
38 }
39
40 /***
41 * Creates a new <code>FearEnchantment</code> object.
42 *
43 * @param theCaster the <code>IBeing</code> casting the
44 * <code>Enchantment</code>.
45 * @param theTarget the <code>Wizard</code> that is the target of the
46 * <code>Enchantment</code>.
47 */
48 public FearEnchantment(final IBeing theCaster, final IWizard theTarget) {
49 super(NAME, theCaster, theTarget);
50 setDuration(DURATION);
51 setDescription(DESCRIPTION);
52 }
53 }