Display.java added to store visual elements

This commit is contained in:
ericnerdo 2016-05-07 13:46:03 +02:00
parent 7c3cbee3cc
commit 3ef7bdd411

21
cicaprojekt/Display.java Normal file
View File

@ -0,0 +1,21 @@
package cicaprojekt;
import java.util.ArrayList;
import java.util.List;
public class Display {
private List<Drawer> visuals;
public Display() {
visuals = new ArrayList<>();
}
public void addVisual(Drawer visual) {
visuals.add(visual);
}
public void drawVisuals() {
for(Drawer visual : visuals)
visual.draw();
}
}