-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSearchBomb.java
More file actions
39 lines (31 loc) · 833 Bytes
/
SearchBomb.java
File metadata and controls
39 lines (31 loc) · 833 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
import static com.orbischallenge.bombman.api.game.MapItems.*;
import com.orbischallenge.bombman.api.game.MapItems;
import com.orbischallenge.bombman.api.game.PlayerAction;
import com.orbischallenge.bombman.api.game.PowerUps;
import java.awt.Point;
import java.util.HashMap;
import java.util.LinkedList;
import java.util.List;
import java.util.Queue;
/**
**
*
*/
public class SearchBomb {
Bomb bomb;
Point location;
int timeToExplosion;
boolean traversed;
public SearchBomb(Bomb bomb, Point location) {
this.bomb = bomb;
this.location = location;
this.timeToExplosion = bomb.getTimeleft();
traversed = false;
}
public SearchBomb clone() {
SearchBomb copy = new SearchBomb(this.bomb, this.location);
copy.timeToExplosion = this.timeToExplosion;
copy.traversed = this.traversed;
return copy;
}
}