コード例 #1
0
 @Override
 public void scoreBarn(FarmScoreContext ctx, Barn meeple) {
   int points = ctx.getBarnPoints();
   meeple.getPlayer().addPoints(points, PointCategory.FARM);
   ScoreEvent ev = new ScoreEvent(meeple.getFeature(), points, PointCategory.FARM, meeple);
   ev.setFinal(true);
   game.post(ev);
 }
コード例 #2
0
 @Override
 public void scoreCastle(Meeple meeple, Castle castle) {
   ScoreEvent ev = new ScoreEvent(meeple.getFeature(), 0, PointCategory.CASTLE, meeple);
   ev.setFinal(true);
   game.post(ev);
 }