Package com.jcloisterzone

Examples of com.jcloisterzone.PointCategory


    }

    //scoring helpers

    public void scoreFeature(int points, ScoreContext ctx, Player p) {
        PointCategory pointCategory = ctx.getMasterFeature().getPointCategory();
        p.addPoints(points, pointCategory);
        Follower follower = ctx.getSampleFollower(p);
        boolean isFinalScoring = getPhase() instanceof GameOverPhase;
        ScoreEvent scoreEvent;
        if (fairyCapability != null && follower.at(fairyCapability.getFairyPosition())) {
View Full Code Here


                }
            }
            NodeList categories = el.getElementsByTagName("point-category");
            for (int j = 0; j < categories.getLength(); j++) {
                Element catEl = (Element) categories.item(j);
                PointCategory cat = PointCategory.valueOf(catEl.getAttribute("name"));
                p.setPointsInCategory(cat, Integer.parseInt(catEl.getAttribute("points")));
            }
            players.add(p);
        }
        return players;
View Full Code Here

TOP

Related Classes of com.jcloisterzone.PointCategory

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.