-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathStats.java
More file actions
108 lines (81 loc) · 2.5 KB
/
Stats.java
File metadata and controls
108 lines (81 loc) · 2.5 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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
/**
* Created by James Page on 4/18/2017.
*/
package Main;
public abstract class Stats {
private int hp;
private int mp;
private int strength;
private int dexterity;
private int vitality;
private int magic;
private int spirit;
private int luck;
//**************************************************************************************
protected void setHp(int hp){
this.hp = hp;
}
protected int getHp(){
return this.hp;
}
//**************************************************************************************
protected void setMp(int mp){
this.mp = mp;
}
protected int getMp(){
return this.mp;
}
//**************************************************************************************
protected void setStrength(int str){
this.strength = str;
}
protected int getStrength(){
return this.strength;
}
//**************************************************************************************
protected void setDexterity(int dex){
this.dexterity = dex;
}
protected int getDexterity(){
return this.dexterity;
}
//**************************************************************************************
protected void setVitality(int vit){
this.vitality = vit;
}
protected int getVitality(){
return this.vitality;
}
//**************************************************************************************
protected void setMagic(int mag){
this.magic = mag;
}
protected int getMagic(){
return this.magic;
}
//**************************************************************************************
protected void setSpirit(int spr){
this.spirit = spr;
}
protected int getSpirit(){
return this.spirit;
}
//**************************************************************************************
protected void setLuck(int lck){
this.luck = lck;
}
protected int getLuck(){
return this.luck;
}
//**************************************************************************************
protected void resetStats(){
this.hp = 0;
this.mp = 0;
this.strength = 0;
this.dexterity = 0;
this.vitality = 0;
this.magic = 0;
this.spirit = 0;
this.luck = 0;
}
}