@Override
public void drawElements(Graphics2D g) {
// for (Bonus b : movingBonus)
for (int i = 0; i < movingBonus.size(); i++) {
Bonus b = movingBonus.get(i);
if (b != null)
b.draw(g);
}
pad.draw(g);
// for (Ball b : balls){
for (int i = 0; i < balls.size(); i++) {
Ball b = balls.get(i);
if (b != null)
b.draw(g);
}
if (levels.size() > 0 && currentLevel < levels.size()) {
List<Brick> bricks = levels.get(currentLevel).getBricks();
for (Brick b : bricks)
b.draw(g);
}
}