diff --git a/src/Map.java b/src/Map.java index f7017c1..29e76ff 100644 --- a/src/Map.java +++ b/src/Map.java @@ -3,6 +3,8 @@ private B b; private C c; private A a; + private Presenter presenter; + public Map() { this.d = new D(); this.b = new B(d); @@ -16,9 +18,8 @@ return b.getValue(); } public void updateGPS(double lat2, double long2) { - this.b.updateGPS(lat2, long2); - this.a.updateGPS(lat2, long2); - } + this.presenter.updateGPS(lat2, long2); + } public double getMapLatitude() { return c.getValue(); }