-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathUsable.java
More file actions
47 lines (44 loc) · 1.05 KB
/
Usable.java
File metadata and controls
47 lines (44 loc) · 1.05 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
public class Usable {
private String name;
private boolean targetUser;
private boolean switchTarget;
private Effect effect;
// Constructor
public Usable(String name, boolean targetUser, boolean switchTarget, Effect effect) {
this.name = name;
this.switchTarget = switchTarget;
this.targetUser = targetUser;
this.effect = effect;
}
// Getters/Setters
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public boolean isTargetUser() {
return targetUser;
}
public void setTargetUser(boolean targetUser) {
this.targetUser = targetUser;
}
public boolean isSwitchTarget() {
return switchTarget;
}
public void setSwitchTarget(boolean switchTarget) {
this.switchTarget = switchTarget;
}
public Effect getEffect() {
return effect;
}
public void setEffect(Effect effect) {
this.effect = effect;
}
// toString
@Override
public String toString() {
return "Usable [name=" + name + ", targetUser=" + targetUser + ", switchTarget=" + switchTarget + ", effect="
+ effect + "]";
}
}