public class Monster
extends java.lang.Object
Constructor and Description |
---|
Monster()
Create a monster.
|
Modifier and Type | Method and Description |
---|---|
int |
getLife()
Return the amount of life that the monster has.
|
static Range |
getToughness()
Return the current toughness range for monsters.
|
static void |
setToughness(Range t)
Set the toughness range for monsters.
|
public Monster()
public int getLife()
public static Range getToughness()
public static void setToughness(Range t)
There is a maximum monster life value set by the class. If
t.getMaximum()
is greater than the class determined maximum
life value, the stored toughness range will not exceed this maximum value.
t
- the new toughness for monsters