Package monopoly.model.gamefield

Examples of monopoly.model.gamefield.GameFieldCellBase


        DiceScore diceScore = p.dropDice(_dice);
        GameModelEvent event = new GameModelEvent(this, p, diceScore);
        firePlayerDroppedDice(event);

        GameFieldCellBase oldPosition = p.position();
        p.shiftOnField(diceScore.score());
        GameFieldCellBase newPosition = p.position();
        event = new GameModelEvent(this, p, oldPosition, newPosition);
        firePlayerShiftedOnField(event);

        event = new GameModelEvent(this, p);
        firePlayerStartedDoAction(event);
View Full Code Here


     * конкретной ячейке игрового поля.
     * @param e аргументы события.
     */
    public void gamePlayerStartedDoAction(GameModelEvent e) {
        final Player p = e.getPlayer();
        GameFieldCellBase cell = p.position();

        if (cell instanceof GiftCell) {
            GiftCell giftCell = (GiftCell) cell;
            int gift = giftCell.currentGift();

View Full Code Here

TOP

Related Classes of monopoly.model.gamefield.GameFieldCellBase

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.