예제 #1
0
  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);
    }
  }
예제 #2
0
  private void notifyCellDeSelected() {

    for (ControllerListener listener : _listeners) {
      listener.cellDeSelected();
    }
  }
예제 #3
0
  private void notifyNewMap(int width, int height) {

    for (ControllerListener listener : _listeners) {
      listener.newMap(width, height);
    }
  }
예제 #4
0
  private void notifyCellChanged(Position pos, CellType cellType) {

    for (ControllerListener listener : _listeners) {
      listener.cellChanged(pos, cellType);
    }
  }
예제 #5
0
  private void notifyShowEntityParameter(String name, String value) {

    for (ControllerListener listener : _listeners) {
      listener.showEntityParameter(name, value);
    }
  }
예제 #6
0
  private void notifyShowCellType() {

    for (ControllerListener listener : _listeners) {
      listener.showCellType(_map.getCell(_posSelected).getType().getType());
    }
  }
예제 #7
0
  private void notifyRemoveEntity(Position[] posList) {

    for (ControllerListener listener : _listeners) {
      listener.removeEntity(posList);
    }
  }
예제 #8
0
  private void notifyNewEntity(Position[] posList, EntityType entityType) {

    for (ControllerListener listener : _listeners) {
      listener.newEntity(posList, entityType);
    }
  }
예제 #9
0
  private void notifyTypeElementDeSelected() {

    for (ControllerListener listener : _listeners) {
      listener.typeElementDeSelected();
    }
  }
예제 #10
0
  private void notifyTypeElementSelected(ElementType elementType, int height, int width) {

    for (ControllerListener listener : _listeners) {
      listener.typeElementSelected(elementType, height, width);
    }
  }
예제 #11
0
  private void notifyPreferencesChanged() {

    for (ControllerListener listener : _listeners) {
      listener.preferencesChanged();
    }
  }