Examples of MeeplePrisonEvent


Examples of com.jcloisterzone.event.MeeplePrisonEvent

                //opponent has my prisoner - figure exchange
                Follower exchanged = myCapturedFollowers.get(0); //TODO same type?
                boolean removeOk = prisoners.remove(exchanged);
                assert removeOk;
                exchanged.clearDeployment();
                game.post(new MeeplePrisonEvent(exchanged, m.getPlayer(), null));
            }
        }
        next();
    }
View Full Code Here

Examples of com.jcloisterzone.event.MeeplePrisonEvent

    }

    public void inprison(Meeple m, Player player) {
        assert m.getLocation() == null;
        prisoners.get(player).add((Follower) m);
        game.post(new MeeplePrisonEvent(m, null, player));
        m.setLocation(Location.PRISON);
    }
View Full Code Here

Examples of com.jcloisterzone.event.MeeplePrisonEvent

                i.remove();
                meeple.clearDeployment();
                opponent.addPoints(RANSOM_POINTS, PointCategory.TOWER_RANSOM);
                ransomPaidThisTurn = true;
                game.getActivePlayer().addPoints(-RANSOM_POINTS, PointCategory.TOWER_RANSOM);
                game.post(new MeeplePrisonEvent(meeple, opponent, null));
                game.getPhase().notifyRansomPaid();
                return;
            }
        }
        throw new IllegalStateException("Opponent has no figure to exchage");
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.