forked from jamalgithub/workdev
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMario.java
More file actions
38 lines (30 loc) · 650 Bytes
/
Mario.java
File metadata and controls
38 lines (30 loc) · 650 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
package factory;
/**
*
* @author Khalid Elshafie <abolkog@gmail.com>
* @created 08/03/2018.
*/
public class Mario {
private String name;
private int health = 100;
private int jumpAttack = 10;
private int mushroomAttack = 20;
public Mario(String name) {
this.name = name;
}
public String getName() {
return name;
}
public int getJumpAttack() {
return jumpAttack;
}
public int getMushroomAttack() {
return mushroomAttack;
}
public void setHealth(int health) {
this.health = health;
}
public int getHealth() {
return health;
}
}