Package monopoly.model.resource

Examples of monopoly.model.resource.ILand


        }

        if (p.payRent(land) == false) {
            List<ILand> confiscated = new ArrayList<ILand>();

            ILand lastLand = _bank.confiscateLand(p);
            while (lastLand != null) {
                GameModelEvent event = new GameModelEvent(this, lastLand,
                        p, _bank);
                fireLandChangedOwner(event);
View Full Code Here


     */
    public void makePlayerPenalty(Player p, int penalty) {
        if (_bank.takeAwayMoney(p, penalty) == false) {
            List<ILand> confiscated = new ArrayList<ILand>();

            ILand lastLand = _bank.confiscateLand(p);
            while (lastLand != null) {
                GameModelEvent event = new GameModelEvent(this, lastLand,
                        p, _bank);
                fireLandChangedOwner(event);

View Full Code Here

        List<ILand> lands = p.landowning();
        if (lands.isEmpty()) {
            return null;
        }

        ILand confiscated = lands.get(0);
        p.removeLand(confiscated);
        p.addMoney(confiscated.confiscationCost());
        addLand(confiscated);

        return confiscated;
    }
View Full Code Here

    /**
     * Обработчик события - у земельного участка сменился владелец.
     * @param e аргументы события.
     */
    public void gameLandChangedOwner(GameModelEvent e) {
        ILand land = e.getLand();
        if (land instanceof CompanyCell) {
            CompanyCell company = (CompanyCell) land;
            CompanyCellPanel panel =
                    (CompanyCellPanel) _fieldPanel.cellPanel(company);

View Full Code Here

TOP

Related Classes of monopoly.model.resource.ILand

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.