-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSidekick.java
More file actions
86 lines (59 loc) · 1.61 KB
/
Sidekick.java
File metadata and controls
86 lines (59 loc) · 1.61 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
abstract class Sidekick implements Cloneable{
protected float HP=100;
protected float XP=0;
protected float cost;
protected float damage;
abstract void attack(Monster monster);
abstract void defence(float f,Monster monster);
abstract void toDefault();
protected boolean clone_flag=true;
public Sidekick(float HP,float XP, float cost, float damage){
this.HP=HP;
this.XP=XP;
this.cost=cost;
this.damage=damage;
}
public void print(){
System.out.println("Sidekick HP - " + this.getHP() + " XP - "+ this.getXP());
}
public float getHP() {
return HP;
}
public void setHP(float HP) {
this.HP = HP;
}
public float getXP() {
return XP;
}
public void setXP(float XP) {
this.XP = XP;
}
// public float getBase_cost() {
// return base_cost;
// }
//
// public void setBase_cost(float base_cost) {
// this.base_cost = base_cost;
// }
public boolean isClone_flag() {
return clone_flag;
}
public void setClone_flag(boolean clone_flag) {
this.clone_flag = clone_flag;
}
public float getCost() {
return cost;
}
public void setCost(float cost) {
this.cost = cost;
}
public float getDamage() {
return damage;
}
public void setDamage(float damage) {
this.damage = damage;
}
public Object clone() throws CloneNotSupportedException {
return super.clone();
}
}