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

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

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

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

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

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

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

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

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

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

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