View Javadoc

1   /*
2   @See License.txt@
3    */
4   package spellcast.enchantment;
5   
6   import spellcast.beings.IBeing;
7   
8   
9   /***
10   * The Diseased <code>Enchantment</code>.
11   *
12   * @author Barrie Treloar
13   * @version $Revision: 1.1 $
14   */
15  public class DiseasedEnchantment extends EnchantmentImpl {
16      /*** Use serialVersionUID for interoperability. */
17      private static final long serialVersionUID = 1L;
18  
19      /*** The duration for <code>DiseasedEnchantment</code>. */
20      private static final int DURATION = 6;
21  
22      /*** The description for <code>DiseasedEnchantment</code>. */
23      private static final String DESCRIPTION =
24          "The subject of this spell immediately contracts a deadly "
25          + "(non-contagious) disease which will kill him at the end of "
26          + "6 turns counting from the one upon which the spell is cast. "
27          + "The malady is cured by 'remove enchantment' or 'cure heavy wounds' "
28          + "or 'dispel magic' in the meantime.";
29  
30      /*** The name for <code>DiseasedEnchantment</code>. */
31      private static final String NAME = "Diseased";
32  
33      /***
34       * Provided for serialization, do not use as a constructor.
35       */
36      protected DiseasedEnchantment() {
37      }
38  
39      /***
40       * Creates a new <code>BlindEnchantment</code> object.
41       *
42       * @param theCaster the <code>IBeing</code> casting the
43       *        <code>Enchantment</code>.
44       * @param theTarget the <code>IBeing</code> that is the target of the
45       *        <code>Enchantment</code>.
46       */
47      public DiseasedEnchantment(final IBeing theCaster, final IBeing theTarget) {
48          super(NAME, theCaster, theTarget);
49          setDuration(DURATION);
50          setDescription(DESCRIPTION);
51      }
52  }