-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathRareGet.java
More file actions
33 lines (23 loc) · 762 Bytes
/
RareGet.java
File metadata and controls
33 lines (23 loc) · 762 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
//A RareGet is a rare kind of Get that spawns more infrequently than the regular Get
//When consumed, RareGets restores the Player's HP in addition to awarding points
//Otherwise, behaves the same as a regular Get
public class RareGet extends Get{
//Location of image file to be drawn for a RareGet
public static final String RARE_GET_IMAGE_FILE = "game_assets/rare_get.gif";
public RareGet(){
this(0, 0);
}
public RareGet(int x, int y){
super(x, y, RARE_GET_IMAGE_FILE);
}
public RareGet(int x, int y, String imageFile){
super(x, y, imageFile);
}
@Override
public int getDamage() {
return 1;
}
public int getAmmo(){
return 1;
}
}