private int getTunnelId(Player p, boolean isB) {
return p.getIndex() + (isB ? 100 : 0);
}
public void placeTunnelPiece(Position p, Location loc, boolean isB) {
Road road = (Road) getBoard().get(p).getFeature(loc);
if (!road.isTunnelOpen()) {
throw new IllegalStateException("No open tunnel here.");
}
placedTunnelCurrentTurn = road;
Player player = game.getActivePlayer();
placeTunnelPiece(road, player, p, loc, isB);