public class HitPointDamage extends java.lang.Object implements Damage
hit
method in the Target.Modifier and Type | Field and Description |
---|---|
private java.lang.Number |
damage
A numerical value representing the amount that a hit damages a Target.
|
Constructor and Description |
---|
HitPointDamage()
Constructs a new HitPointDamage with the damage Object set to null.
|
HitPointDamage(java.lang.Object damage)
Constructs a new HitPointDamage with the given damage Object.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
getDamage()
A numerical value representing the amount that a hit damages a Target.
|
void |
setDamage(java.lang.Object damage)
Sets the numerical value representing the amount that a hit damages a
Target.
|
private java.lang.Number damage
public HitPointDamage()
public HitPointDamage(java.lang.Object damage)
damage
- Given damage object