Examples of Meeple


Examples of com.jcloisterzone.figure.Meeple

            if (!meepleType.startsWith("com.")) { // 2.X snapshot compatibility
                meepleType = "com.jcloisterzone.figure." + meepleType;
            }
            Class<? extends Meeple> mt = (Class<? extends Meeple>) XmlUtils.classForName(meepleType);
            int playerIndex = Integer.parseInt(el.getAttribute("player"));
            Meeple meeple = game.getPlayer(playerIndex).getMeepleFromSupply(mt);
            meeple.setLocation(loc);
            meeple.setPosition(pos);
            //don't set feature here. Feature must be set after meeple deployment to correct replace ref during merge
            result.add(meeple);
        }
        return result;
    }
View Full Code Here

Examples of com.jcloisterzone.figure.Meeple

    private Event freezeEvent(Event ev) {
        if (ev instanceof MeepleEvent) {
            //TODO is it really needed with new meeple events?
            MeepleEvent mev = (MeepleEvent) ev;
            Meeple m = mev.getMeeple();
            return new MeepleEvent(((MeepleEvent) ev).getTriggeringPlayer(), (Meeple) m.clone(), mev.getFrom(), mev.getTo());
        }
        return ev;
    }
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.