aboutsummaryrefslogtreecommitdiff
path: root/Week14 Route 66/src/OO14route66/Car.java
diff options
context:
space:
mode:
authorCamil Staps2015-05-29 08:27:18 +0200
committerCamil Staps2015-05-29 08:27:18 +0200
commit52796bb5693dfd6ad1fda9a06cbc4c427a683f0d (patch)
tree5cf334c832ce70f58bffea241f01166dceb45263 /Week14 Route 66/src/OO14route66/Car.java
parentcomments; cleanup (diff)
Overviewer without Map
Diffstat (limited to 'Week14 Route 66/src/OO14route66/Car.java')
-rw-r--r--Week14 Route 66/src/OO14route66/Car.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/Week14 Route 66/src/OO14route66/Car.java b/Week14 Route 66/src/OO14route66/Car.java
index 0058d8d..97d7b33 100644
--- a/Week14 Route 66/src/OO14route66/Car.java
+++ b/Week14 Route 66/src/OO14route66/Car.java
@@ -35,6 +35,7 @@ public class Car {
* - choose a random speed
* - set right location, direction and colour
* - create new Driver object
+ * - say hello to the Overviewer
*
* @param number of the car
* @param model the model the car is in
@@ -48,6 +49,7 @@ public class Car {
colour = carColours[number % carColours.length];
driver = new Driver(this);
this.model = model;
+ Overviewer.getInstance().hello(this);
}
/**
@@ -95,7 +97,6 @@ public class Car {
*/
public void step() {
location = getNewLocation();
- Overviewer.getInstance().setLocation(this, location);
model.update();
}