diff --git a/src/main/java/edu/ntnu/stud/chaosgame/controller/game/ChaosGame.java b/src/main/java/edu/ntnu/stud/chaosgame/controller/game/ChaosGame.java index 09c1d600545bf0406b77037e56355e0cf227c4ef..56f76364720d0f70ee34509c67c0abf14c414a10 100644 --- a/src/main/java/edu/ntnu/stud/chaosgame/controller/game/ChaosGame.java +++ b/src/main/java/edu/ntnu/stud/chaosgame/controller/game/ChaosGame.java @@ -1,6 +1,7 @@ package edu.ntnu.stud.chaosgame.controller.game; import edu.ntnu.stud.chaosgame.model.data.Vector2D; +import edu.ntnu.stud.chaosgame.view.ChaosGameObserver; import java.util.ArrayList; import java.util.Arrays; import java.util.Random; diff --git a/src/main/java/edu/ntnu/stud/chaosgame/controller/game/ChaosGameObserver.java b/src/main/java/edu/ntnu/stud/chaosgame/view/ChaosGameObserver.java similarity index 72% rename from src/main/java/edu/ntnu/stud/chaosgame/controller/game/ChaosGameObserver.java rename to src/main/java/edu/ntnu/stud/chaosgame/view/ChaosGameObserver.java index e04a44dad64a2371ab6958b9523e3b83ae055561..24ab6a37de32be6c0e83ee0f0ad346f67c5241be 100644 --- a/src/main/java/edu/ntnu/stud/chaosgame/controller/game/ChaosGameObserver.java +++ b/src/main/java/edu/ntnu/stud/chaosgame/view/ChaosGameObserver.java @@ -1,4 +1,6 @@ -package edu.ntnu.stud.chaosgame.controller.game; +package edu.ntnu.stud.chaosgame.view; + +import edu.ntnu.stud.chaosgame.controller.game.ChaosGame; /** * Observer interface for monitoring changes to the active @@ -7,6 +9,7 @@ package edu.ntnu.stud.chaosgame.controller.game; public interface ChaosGameObserver { // TODO: Create interface + /** * Perform update of the ChaosCanvas. * @@ -21,5 +24,10 @@ public interface ChaosGameObserver { */ //void updateDescription(ChaosGameDescription description); + /** + * Update the observer based on changes to the chaos game. + * + * @param game the game this observer is monitoring. + */ void update(ChaosGame game); }