1
2
3
4 package spellcast.enchantment;
5
6 import spellcast.beings.IBeing;
7
8
9 /***
10 * The Poisoned <code>Enchantment</code>.
11 *
12 * @author Barrie Treloar
13 * @version $Revision: 1.1 $
14 */
15 public class PoisonedEnchantment extends EnchantmentImpl {
16 /*** Use serialVersionUID for interoperability. */
17 private static final long serialVersionUID = 1L;
18
19 /*** The duration for <code>PoisonedEnchantment</code>. */
20 private static final int DURATION = 6;
21
22 /*** The description for <code>PoisonedEnchantment</code>. */
23 private static final String DESCRIPTION =
24 "This is the same as the disease spell except that "
25 + "'cure heavy wounds' does not stop its effects.";
26
27 /*** The name of the <code>PoisonedEnchantment</code>. */
28 private static final String NAME = "Poisoned";
29
30 /***
31 * Provided for serialization, do not use as a constructor.
32 */
33 protected PoisonedEnchantment() {
34 }
35
36 /***
37 * Creates a new <code>PoisonedEnchantment</code> object.
38 *
39 * @param theCaster the <code>IBeing</code> casting the
40 * <code>Enchantment</code>.
41 * @param theTarget the <code>IBeing</code> that is the target of the
42 * <code>Enchantment</code>.
43 */
44 public PoisonedEnchantment(final IBeing theCaster, final IBeing theTarget) {
45 super(NAME, theCaster, theTarget);
46 setDuration(DURATION);
47 setDescription(DESCRIPTION);
48 }
49 }