-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathFugi.java
More file actions
54 lines (32 loc) · 1.15 KB
/
Copy pathFugi.java
File metadata and controls
54 lines (32 loc) · 1.15 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
public class Fugi extends Player{
public static final String FUGI_IMAGE_FILE = "game_assets/real_flamefr.gif";
public static final String FUGI_IMAGE_FILE2 = "game_assets/Flame2.gif";
public static final String FUGI_IMAGE_DAMAGE = "game_assets/FlameDamage.gif";
public static final String FUGI_IMAGE_DAMAGE2 = "game_assets/FlameDamage2.gif";
public static final int FUGI_WIDTH = 30;
public static final int FUGI_HEIGHT = 50;
public static final int DEFAULT_MOVEMENT_SPEED = 7;
public static final int STARTING_HP = 10;
protected static final int INIT_AMMO = 0;
private int ammo = INIT_AMMO;
private int TargsGot = 0;
public Fugi(){
this(0, 0);
}
public Fugi(int x, int y){
super(x, y, FUGI_WIDTH, FUGI_HEIGHT, FUGI_IMAGE_FILE);
super.hp = STARTING_HP;
}
public int getAmmo(){
return this.ammo;
}
public void setAmmo(int newAmmo){
this.ammo = newAmmo;
}
public int getTargs(){
return this.TargsGot;
}
public void setTargs(int newScore){
this.TargsGot = newScore;
}
}