}
@Subscribe
public void selectBazaarTile(BazaarSelectTileEvent ev) {
client.clearActions();
BazaarPanel bazaarPanel = createSecondPanel(BazaarPanel.class);
if (ev.getTargetPlayer().isLocalHuman()) {
List<BazaarItem> supply = ev.getBazaarSupply();
for (int i = 0; i < supply.size(); i++) {
// find first allowed item
if (supply.get(i).getOwner() == null) {
bazaarPanel.setSelectedItem(i);
break;
}
}
bazaarPanel.setState(BazaarPanelState.SELECT_TILE);
} else {
bazaarPanel.setState(BazaarPanelState.INACTIVE);
}
gamePanel.getGridPanel().repaint();
}