27 |
private int height; |
private int height; |
28 |
|
|
29 |
private String owner; |
private String owner; |
30 |
|
|
31 |
|
private boolean isPrivate; |
32 |
|
|
33 |
|
|
34 |
public Door(Block sign, int width, int height, DoorStorage store, String owner) throws ConflictingDoorException{ |
public Door(Block sign, int width, int height, DoorStorage store, String owner, boolean isPrivate) throws ConflictingDoorException{ |
35 |
leftUpper = sign.getLocation().clone(); |
leftUpper = sign.getLocation().clone(); |
36 |
|
|
37 |
this.width = width; |
this.width = width; |
38 |
this.height = height; |
this.height = height; |
39 |
|
|
40 |
this.owner = owner; |
this.owner = owner; |
41 |
|
|
42 |
|
this.isPrivate = isPrivate; |
43 |
|
|
44 |
|
|
45 |
direction = sign.getData() - 2; |
direction = sign.getData() - 2; |
96 |
loadBlocks(); |
loadBlocks(); |
97 |
}*/ |
}*/ |
98 |
|
|
99 |
public Door(Location loc, int direction, int width, int height, String owner) { |
public Door(Location loc, int direction, int width, int height, String owner, boolean isPrivate) { |
100 |
leftUpper = loc; |
leftUpper = loc; |
101 |
this.direction = direction; |
this.direction = direction; |
102 |
this.width = width; |
this.width = width; |
103 |
this.height = height; |
this.height = height; |
104 |
this.owner = owner; |
this.owner = owner; |
105 |
|
this.isPrivate = isPrivate; |
106 |
|
|
107 |
loadBlocks(); |
loadBlocks(); |
108 |
} |
} |
246 |
return direction; |
return direction; |
247 |
} |
} |
248 |
|
|
249 |
|
public boolean isPrivate() { |
250 |
|
return isPrivate; |
251 |
|
} |
252 |
|
|
253 |
} |
} |