public class Armor extends Equipment
Modifier and Type | Class and Description |
---|---|
static class |
Armor.Type |
Modifier and Type | Field and Description |
---|---|
(package private) Armor.Type |
armorType
Type of armor.
|
(package private) int |
baseArmor
Base armor points added.
|
(package private) int |
maxMovement
Max movement allowed.
|
magicBonus, MAX_MAGIC_BONUS, name
Constructor and Description |
---|
Armor(Armor.Type armorType,
int baseArmor,
int maxMove,
int magicBonus)
Constructor (all fields)
|
Armor(Armor a)
Constructor (copy)
|
Modifier and Type | Method and Description |
---|---|
Armor.Type |
getArmorType() |
int |
getBaseArmor() |
int |
getMaxMove() |
static Armor |
makeType(Armor.Type type)
Create a new armor of a given type.
|
formatBonus, getMagicBonus, getName, incMagicBonus, setMagicBonus, toString
Armor.Type armorType
int baseArmor
int maxMovement
Armor(Armor.Type armorType, int baseArmor, int maxMove, int magicBonus)
Armor(Armor a)
public Armor.Type getArmorType()
public int getBaseArmor()
public int getMaxMove()
public static Armor makeType(Armor.Type type)