From 3ef7bdd4115a2eddadb2c42d4a6ba3e7b1ee4aff Mon Sep 17 00:00:00 2001 From: ericnerdo Date: Sat, 7 May 2016 13:46:03 +0200 Subject: [PATCH] Display.java added to store visual elements --- cicaprojekt/Display.java | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 cicaprojekt/Display.java 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(); + } +}