-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathRepairableObject.java
More file actions
89 lines (78 loc) · 2.09 KB
/
Copy pathRepairableObject.java
File metadata and controls
89 lines (78 loc) · 2.09 KB
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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
/**
* this class is responsible for the players information
*
* @author Douwe Klip
* @version 1.0
*/
public class RepairableObject {
// fields
private String description;
private Item material;
private Item tool;
private String inspection;
private Object replaceObject;
// constructor
/**
* creates Repairabl object
*
* @param description description of repairable object
* @param material material that is used to repair repairable object
* @param tool tool that will be used to repair object
* @param inspection the inspection of te object
*/
public RepairableObject(String description, Item material, Item tool, String inspection) {
this.description = description;
this.material = material;
this.tool = tool;
this.inspection = inspection;
}
// methods
/**
* sets a replaceable object
*
* @param object object that will replace repairable object when repaired
*/
public void setReplaceObject(Object object) {
this.replaceObject = object;
}
/**
* gets te replacable object
*
* @return returns replacebale object
*/
public Object getReplaceObject() {
return replaceObject;
}
/**
* gets inspection of the RepairableObject
*
* @return returns inspection of the RepairableObject
*/
public String getInspection() {
return inspection;
}
/**
* gets description
*
* @return returns the description of RepairableObject
*/
public String getDescription() {
return description;
}
/**
* gets the material that is used to repair the RepairableObject
*
* @return returns the material that will be use to repait the RepairableObject
*/
public Item getMaterial() {
return material;
}
/**
* gets tool that will be use to repair the repairable object
*
* @return returns tool that will be used to repair the RepairableObject
*/
public Item getTool() {
return tool;
}
}