Display.java added to store visual elements
This commit is contained in:
parent
7c3cbee3cc
commit
3ef7bdd411
21
cicaprojekt/Display.java
Normal file
21
cicaprojekt/Display.java
Normal 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();
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user