-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMyCharacter.java
More file actions
50 lines (39 loc) · 902 Bytes
/
MyCharacter.java
File metadata and controls
50 lines (39 loc) · 902 Bytes
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
/**
* MyCharacter
*/
public class MyCharacter {
byte lifePoint;
byte numOfLives;
int stamina;
int strength;
MyCharacter(){
lifePoint = 0;
numOfLives = 0;
stamina = 0;
strength = 0;
}
public byte getLifePoint() {
return lifePoint;
}
public void setLifePoint(byte lifePoint) {
this.lifePoint = lifePoint;
}
public byte getNumOfLives() {
return numOfLives;
}
public void setNumOfLives(byte numOfLives) {
this.numOfLives = numOfLives;
}
public int getStamina() {
return stamina;
}
public void setStamina(int stamina) {
this.stamina = stamina;
}
public int getStrength() {
return strength;
}
public void setStrength(int strength) {
this.strength = strength;
}
}