-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathWall.java
More file actions
32 lines (28 loc) · 742 Bytes
/
Wall.java
File metadata and controls
32 lines (28 loc) · 742 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
public class Wall
{
private Location loc;
private boolean trap, isWall, teleport, death;
public Wall(Location loc)
{
this.loc = loc;
isWall = true;
trap = false;
teleport = false;
death = false;
}
public Wall(Location loc, boolean trap, boolean isWall, boolean teleport, boolean death)
{
this.loc = loc;
this.trap = trap;
this.isWall = isWall;
this.teleport = teleport;
this.death = death;
}
public int getX(){return loc.getX();}
public int getY(){return loc.getY();}
public Location getLoc(){return loc;}
public boolean getTrap(){return trap;}
public boolean isWall(){return isWall;}
public boolean isTeleport(){return teleport;}
public boolean isDeath(){return death;}
}