game.post(new SelectActionEvent(getActivePlayer(), captureAction, true));
}
private TakePrisonerAction prepareCapture(Position p, int range) {
//TODO custom rule - opponent only
TakePrisonerAction captureAction = new TakePrisonerAction();
for (Meeple pf : game.getDeployedMeeples()) {
if (!(pf instanceof Follower)) continue;
Position pos = pf.getPosition();
if (pos.x != p.x && pos.y != p.y) continue; //check if is in same row or column
if (pos.squareDistance(p) > range) continue;
captureAction.add(new MeeplePointer(pf));
}
return captureAction;
}