Package jbrickbreaker.model.bonuses

Examples of jbrickbreaker.model.bonuses.Bonus


    @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);
        }
    }
View Full Code Here

TOP

Related Classes of jbrickbreaker.model.bonuses.Bonus

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.