Examples of PenaltyCell


Examples of monopoly.model.gamefield.PenaltyCell

        _field.clear();

        _field.addCell(new EmptyCell());
        _field.addCell(new CompanyCell(
                "Bacardi", 16000, (int) (16000 * 0.6), 3500));
        _field.addCell(new PenaltyCell());
        _field.addCell(new CompanyCell(
                "Smirnoff", 16000, (int) (16000 * 0.6), 2500));
        _field.addCell(new PenaltyCell());
        _field.addCell(new CompanyCell(
                "Absolut Vodka", 16000, (int) (16000 * 0.6), 4000));
        _field.addCell(new GiftCell());
        _field.addCell(new CompanyCell(
                "Microsoft", 88000, (int) (88000 * 0.6), 38000));
        _field.addCell(new CompanyCell(
                "Marlboro", 20000, (int) (20000 * 0.6), 1500));
        _field.addCell(new EmptyCell());
        _field.addCell(new CompanyCell(
                "Kent", 20000, (int) (20000 * 0.6), 1500));
        _field.addCell(new CompanyCell(
                "Parlament", 20000, (int) (20000 * 0.6), 2000));
        _field.addCell(new CompanyCell(
                "Nike", 28000, (int) (28000 * 0.6), 4000));
        _field.addCell(new CompanyCell(
                "Adidas", 28000, (int) (28000 * 0.6), 6300));
        _field.addCell(new CompanyCell(
                "Puma", 28000, (int) (28000 * 0.6), 4900));
        _field.addCell(new GiftCell());
        _field.addCell(new CompanyCell(
                "IBM", 50000, (int) (50000 * 0.6), 15900));
        _field.addCell(new CompanyCell(
                "Scania", 35000, (int) (35000 * 0.6), 10000));
        _field.addCell(new EmptyCell());
        _field.addCell(new CompanyCell(
                "Man", 40000, (int) (40000 * 0.6), 12000));
        _field.addCell(new GiftCell());
        _field.addCell(new CompanyCell(
                "Nokia", 48000, (int) (48000 * 0.6), 16000));
        _field.addCell(new CompanyCell(
                "Samsung", 48000, (int) (48000 * 0.6), 17000));
        _field.addCell(new CompanyCell(
                "Panasonic", 48000, (int) (48000 * 0.6), 17000));
        _field.addCell(new CompanyCell(
                "Apple", 90000, (int) (90000 * 0.6), 40000));
        _field.addCell(new CompanyCell(
                "Beeline", 52000, (int) (52000 * 0.6), 25000));
        _field.addCell(new CompanyCell(
                "Megafon", 52000, (int) (52000 * 0.6), 27000));
        _field.addCell(new PenaltyCell());
        _field.addCell(new CompanyCell(
                "Gucci", 64000, (int) (64000 * 0.6), 29900));
        _field.addCell(new CompanyCell(
                "Cannel", 65000, (int) (65000 * 0.6), 28000));
        _field.addCell(new PenaltyCell());
        _field.addCell(new CompanyCell(
                "Dell", 68000, (int) (68000 * 0.6), 30000));
        _field.addCell(new GiftCell());
        _field.addCell(new CompanyCell(
                "Pepsi", 80000, (int) (80000 * 0.6), 36000));
        _field.addCell(new PenaltyCell());
        _field.addCell(new CompanyCell(
                "Coca-cola", 85000, (int) (85000 * 0.6), 38100));

        List<GameFieldCellBase> cells = _field.cells();
        for (int i = 0; i < cells.size() - 1; i++) {
View Full Code Here

Examples of monopoly.model.gamefield.PenaltyCell

                    + "</html>");

            GameViewEvent event = new GameViewEvent(this, p, gift);
            fireMadePlayerGift(event);
        } else if (cell instanceof PenaltyCell) {
            PenaltyCell penaltyCell = (PenaltyCell) cell;
            int penalty = penaltyCell.currentPenalty();

            showSimpleDialogMessage("ШТРАФ", "<html>"
                    + "Игрок <font color=" + HTMLColors.getName(p.color()) + ">"
                    + "\"" + p.name() + "\"</font>" + " остановился на ячейки "
                    + "<font color=red>\"ШТРАФ\"</font>. "
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.