private boolean notifyMapElements(MouseEvent orgEvent, MouseEvent e,
Point mapPosition) {
boolean mapElementFound = false;
List<MapElementDrawable> drawables = new ArrayList<MapElementDrawable>();
MapElementDrawable selected = null;
for (MapElementDrawable draw : drawableElements) {
if (draw.contain(mapPosition)) {
if (draw.isSelected()) {
selected = draw;
}
if (!draw.getMapElement().isHiddenForPlayer()) {
// if visible add it
drawables.add(draw);
} else if (CampaignClient.getInstance().getCurrentPlayer()
.isDm()) {
// if is mj add it
drawables.add(draw);
}
}
}
if (!drawables.isEmpty()) {
if (selected != null) {
selected.fireMouseClicked(e);
} else {
selectElementDrawable(orgEvent, e, drawables);
}
mapElementFound = true;
}