View Javadoc

1   /*
2   @See License.txt@
3    */
4   
5   package spellcast.damage;
6   
7   
8   /***
9    * Damage is the main way to kill a Being.
10   * Damage comes in a variety of flavours which may be resisted.
11   *
12   * @author  Barrie Treloar
13   */
14  public class Damage {
15      
16      public Damage(DamageType type_, int value_) {
17          setType(type_);
18          setValue(value_);
19      }
20      
21      private DamageType type;
22      public DamageType getType() { return type; }
23      public void setType(DamageType type_) { type = type_; }
24      
25      private int value;
26      public int getValue() { return value; }
27      public void setValue(int value_) { value = value_; }    
28  }