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

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

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

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

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

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

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

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

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

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

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