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