Examples of execute()


Examples of civquest.map.resource.gameChange.SetResourceEdgeAmount.execute()

      Field field = (Field)(edge.getDestNode().getManager());
      ResourceSet amount = producer.getResourceProduction(field.getPosition());
      change.add(edge.getID(), amount);
    }

    change.execute();
  }

  public void afterGameChanged(AddNation addNation) {
    processAddNation(game.getNation(addNation.getNewNationID()));
  }
View Full Code Here

Examples of civquest.nation.gameChange.AddNation.execute()

             AddNation nation1 = new AddNation("The Brainbugs",
                     registry.getSubRegistry("nations"), registry.getSubRegistry("visibility"));
             nation1.execute();
             AddNation nation2 = new AddNation("Die Schneewittchens",
                     registry.getSubRegistry("nations"), registry.getSubRegistry("visibility"));
             nation2.execute();
         } catch (RulesetException rse) {
            System.out.println(rse);
         }
//<<<<<<<<       
       
View Full Code Here

Examples of civquest.swing.gameChange.SetWorkingField.execute()

        if (pointedField != null) {
          pos = pointedField.getPosition();
        }
       
        SetWorkingField setWFChange = new SetWorkingField(quadMap, pos);
        setWFChange.execute();
      }     
    } else if (quadMap.setWFByKeyboard()) {
      messages.err("SetWorkingFieldAction", "setWFByKeyboard not yet implemented");
    } else {
      messages.err("SetWorkingFieldAction", "SetWorkingField: BUG!!! " +
View Full Code Here

Examples of civquest.swing.gameChange.ToggleUnitBlinkOn.execute()

  private void setUpBlinkTimer() throws RulesetException {
    ActionListener blinkListener = new ActionListener() {
        public void actionPerformed(ActionEvent event) {
          ToggleUnitBlinkOn guiChange = new ToggleUnitBlinkOn(guiState);
          guiChange.execute();
        }
      };

    Ruleset generalRuleset = guiRegistry.getRuleset("general");
    Section settingsRuleset = generalRuleset.getSection("settings");
View Full Code Here

Examples of civquest.units.gameChange.ConstructUnit.execute()

      if (field != null) {
        if (activeNation != null) {
          ConstructUnit newUnitChange
            = new ConstructUnit(field.getPosition(),
                      activeNation.getID());
          newUnitChange.execute();
        } else {
          Messages.getMessages().info("ConstructTestUnit", "QMapWarn",
                        "When constructing test unit: "
                        + "No active nation!");
        }
View Full Code Here

Examples of civquest.units.gameChange.RemoveUnit.execute()

                      + " because it has only " + change.getHealth()
                      + " (owner was: "
                      + mapData.getUnit(change.getMapObject())
                      .getOwner());
        RemoveUnit rmUnit = new RemoveUnit(change.getMapObject());
        rmUnit.execute();
        Messages.getMessages().info("DUnitDestroyManager", "Destroy",
                      "Destroying done");
      }
    }
View Full Code Here

Examples of civquest.visibility.blackWhite.gameChange.MakeCompleteVisible.execute()

  private void makeCompleteVisible(Coordinate coord) {
     if (!isCompleteVisible(coord)) {
      MakeCompleteVisible realChange
        = new MakeCompleteVisible(coord, this);
      realChange.execute();
     }
  }

  private void makeCompleteVisible(Set<Coordinate> coords) {
    Iterator<Coordinate> iterator = coords.iterator();
View Full Code Here

Examples of civquest.visibility.blackWhite.gameChange.MakeInvisible.execute()

  private void makeInvisible(Coordinate coord) {
    // executing a change is needed only if something changes...
    if (!isInvisible(coord)) {
       MakeInvisible realChange
        = new MakeInvisible(coord, this);
      realChange.execute();
    }
  }

  private void makeInvisible(Set<Coordinate> coords) {
    Iterator<Coordinate> iterator = coords.iterator();
View Full Code Here

Examples of civquest.visibility.blackWhite.gameChange.MakeTerrainVisible.execute()

  private void makeTerrainVisible(Coordinate coord) {
    // executing a change is needed only if something changes...
    if (!isTerrainVisible(coord)) {
       MakeTerrainVisible realChange
        = new MakeTerrainVisible(coord, this);
      realChange.execute();
    }
  }

  private void makeTerrainVisible(Set<Coordinate> coords) {
    Iterator<Coordinate> iterator = coords.iterator();
View Full Code Here

Examples of cn.bran.japid.compiler.TranslateTemplateTask.execute()

    List<String> javatags = DirUtil.scanJavaTags(root);
    for (String f : javatags) {
      t.addImport("static " + f + ".*");
    }
    try {
      t.execute();
    } catch (JapidCompilationException e) {
//       remove the .class file from previous successful compilation if any
//      String templateName = e.getTemplateName();
//      String javaSrc = DirUtil.mapSrcToJava(templateName);
//      // remove the java file
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.