improved cameraFree
This commit is contained in:
parent
1fc63bd1d9
commit
22b177ca57
@ -50,6 +50,7 @@ public class InteractionCell extends Cell {
|
|||||||
public void readNextLine() {
|
public void readNextLine() {
|
||||||
if (scanner.hasNextLine() && !dialog.getTimerIsRunning()) {
|
if (scanner.hasNextLine() && !dialog.getTimerIsRunning()) {
|
||||||
String data = scanner.nextLine();
|
String data = scanner.nextLine();
|
||||||
|
window.getCamera().setCameraFirstMove(false);
|
||||||
if (data.equals("<end>")) {
|
if (data.equals("<end>")) {
|
||||||
endEvent();
|
endEvent();
|
||||||
}
|
}
|
||||||
@ -70,6 +71,7 @@ public class InteractionCell extends Cell {
|
|||||||
readNextLine();
|
readNextLine();
|
||||||
}
|
}
|
||||||
else if (data.contains("<wait>")) {
|
else if (data.contains("<wait>")) {
|
||||||
|
window.getCamera().setCameraFirstMove(true);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
else if (data.contains("<dialog>")) {
|
else if (data.contains("<dialog>")) {
|
||||||
|
|||||||
@ -94,6 +94,7 @@ public class Person extends Cell {
|
|||||||
}
|
}
|
||||||
else if (map.isActiveTriggerCell(x,y) && isInEvent) {
|
else if (map.isActiveTriggerCell(x,y) && isInEvent) {
|
||||||
map.findTriggerByXY(x,y).readNextLine();
|
map.findTriggerByXY(x,y).readNextLine();
|
||||||
|
|
||||||
}
|
}
|
||||||
else if (isDoorInFront(x,y,directionSight)) {
|
else if (isDoorInFront(x,y,directionSight)) {
|
||||||
DoorCell door = map.findDoorByXY(x, y, directionSight);
|
DoorCell door = map.findDoorByXY(x, y, directionSight);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user