laatste update

This commit is contained in:
unknown
2015-03-26 12:05:33 +01:00
parent b9d42cd4eb
commit d8efbc8616
11 changed files with 145 additions and 14 deletions
+3 -2
View File
@@ -98,6 +98,7 @@ public class Visitor {
while (startTime < stopTime) {
int random = (int) Math.floor(Math.random() * 51);
System.out.println(random);
if (random < 30) {
Point2D position = null;
for (Event e : agenda.getEvents()) {
@@ -119,7 +120,7 @@ public class Visitor {
} else if (random >= 30 && random < 35) {
Point2D position = null;
for (DrawObject d : objects) {
if (d.getFileName().equals("images/entrance.png")) {
if (d.getFileName().equals("entrance")) {
position = d.getPosition();
}
}
@@ -132,7 +133,7 @@ public class Visitor {
} else if (random > 35) {
Point2D position = null;
for (DrawObject d : objects) {
if (d.getFileName().equals("images/wc.png")) {
if (d.getFileName().equals("wc")) {
position = d.getPosition();
}
}