diff --git a/cicaprojekt/Display.java b/cicaprojekt/Display.java new file mode 100644 index 0000000..16ed820 --- /dev/null +++ b/cicaprojekt/Display.java @@ -0,0 +1,21 @@ +package cicaprojekt; + +import java.util.ArrayList; +import java.util.List; + +public class Display { + private List visuals; + + public Display() { + visuals = new ArrayList<>(); + } + + public void addVisual(Drawer visual) { + visuals.add(visual); + } + + public void drawVisuals() { + for(Drawer visual : visuals) + visual.draw(); + } +}