private void notifyShowEntityMessage() { String message; if (_map.getCell(_posSelected).getEntity() > 0) message = "InformaciĆ³n de la entidad:"; else message = "Casilla sin entidad"; for (ControllerListener listener : _listeners) { listener.showEntityMessage(message); } }
private void notifyCellDeSelected() { for (ControllerListener listener : _listeners) { listener.cellDeSelected(); } }
private void notifyNewMap(int width, int height) { for (ControllerListener listener : _listeners) { listener.newMap(width, height); } }
private void notifyCellChanged(Position pos, CellType cellType) { for (ControllerListener listener : _listeners) { listener.cellChanged(pos, cellType); } }
private void notifyShowEntityParameter(String name, String value) { for (ControllerListener listener : _listeners) { listener.showEntityParameter(name, value); } }
private void notifyShowCellType() { for (ControllerListener listener : _listeners) { listener.showCellType(_map.getCell(_posSelected).getType().getType()); } }
private void notifyRemoveEntity(Position[] posList) { for (ControllerListener listener : _listeners) { listener.removeEntity(posList); } }
private void notifyNewEntity(Position[] posList, EntityType entityType) { for (ControllerListener listener : _listeners) { listener.newEntity(posList, entityType); } }
private void notifyTypeElementDeSelected() { for (ControllerListener listener : _listeners) { listener.typeElementDeSelected(); } }
private void notifyTypeElementSelected(ElementType elementType, int height, int width) { for (ControllerListener listener : _listeners) { listener.typeElementSelected(elementType, height, width); } }
private void notifyPreferencesChanged() { for (ControllerListener listener : _listeners) { listener.preferencesChanged(); } }