Class Armor
java.lang.Object
Equipment
Armor
Armor on a character.
- Since:
- 2016-01-17
-
Nested Class Summary
Nested classes/interfaces inherited from class Equipment
Equipment.Material
-
Field Summary
Modifier and TypeFieldDescription(package private) Armor.Type
Type of armor.(package private) int
Base armor points added.Fields inherited from class Equipment
magicBonus, material, MAX_MAGIC_BONUS, name, ONE_THIRD, weight
-
Constructor Summary
ConstructorDescriptionCopy constructorArmor
(Armor.Type armorType, Equipment.Material material, int baseArmor, float weight, int magicBonus) Full constructor -
Method Summary
Modifier and TypeMethodDescriptionint
boolean
isMetal()
Is this armor made of metal?static Armor
makeType
(Armor.Type type) Create a new armor of a given type.Methods inherited from class Equipment
getMagicBonus, getMaterial, getName, getWeight, incMagicBonus, isMetallic, rollSave, setMagicBonus, toString
-
Field Details
-
armorType
Armor.Type armorTypeType of armor. -
baseArmor
int baseArmorBase armor points added.
-
-
Constructor Details
-
Armor
Armor(Armor.Type armorType, Equipment.Material material, int baseArmor, float weight, int magicBonus) Full constructor -
Armor
Armor(Armor a) Copy constructor
-
-
Method Details
-
getArmorType
-
getBaseArmor
public int getBaseArmor() -
isMetal
public boolean isMetal()Is this armor made of metal? -
makeType
Create a new armor of a given type.
-