Пример #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);
 }
 @Override
 public void scoreBarn(FarmScoreContext ctx, Barn meeple) {
   // prefer barn placement - magic constant
   rank += reducePoints(1.2 * ctx.getBarnPoints(), meeple.getPlayer());
 }