-
Notifications
You must be signed in to change notification settings - Fork 0
/
Armor_UpperLeg.java
65 lines (58 loc) · 1.81 KB
/
Armor_UpperLeg.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
package MiniGameProject.Items.Armor;
/**
* This class will handle all armor pieces in the game that protect the upper legs.
* @author Zachary House
* @version 04/10/18
*/
public class Armor_UpperLeg implements Armor
{
/** The initial name given to the armor piece, cannot be changed. */
private String initialName;
/** The description of the armor piece. */
private String description;
/** The armor value of the armor piece. */
private double armorRating;
/** The initial weight given to the armor piece. */
private double initialWeight;
/** The current weight of the armor piece. */
private double currentWeight;
/**
* Constructor that allows the creation of instances of Armor_ChestPlate.
* @param name The initial name given to the armor piece, cannot be changed.
* @param description The description of the armor piece.
* @param armorRating The armor value of the armor piece.
* @param weight The weight of the armor piece.
*/
public Armor_UpperLeg( String name, String description, double armorRating, double weight )
{
this.initialName = name;
this.description = description;
this.armorRating = armorRating;
this.initialWeight = weight;
this.currentWeight = weight;
}
@Override
public String getInitialName()
{
return this.initialName;
}
@Override
public double getInitialWeight()
{
return this.initialWeight;
}
public double getCurrentWeight()
{
return this.currentWeight;
}
@Override
public String getDescription()
{
return this.description;
}
@Override
public double getArmorRating()
{
return this.armorRating;
}
}