Package civquest.parser.ruleset

Examples of civquest.parser.ruleset.Section


      // Determine wether it is marked (marked units blink)
      Group activeGroup = quadMap.getActiveGroup();
      blinking = activeGroup.containsUnit(topUnitID);

      // Fetch unit-image
      Section imageSection = ruleset.getSection("unitimages");
     
      MapObjectReader moReader = gameData.getMapObjectReader();
     
      if (!moReader.isMapObjectModelNameAvailable(topUnitID)) {
        // Model-name unknown - TODO: Better handling of the situation
        // "We know there is a unit, but we don't know the type"
        unitImage = null;
        Messages.getMessages().info("QuadIsoLayUnitView", "QMapWarn",
                      "Warning: There is a unit (id: "
                      + topUnitID + "), but I "
                      + "don't know its type!");
      } else {
        String modelName = moReader.getMapObjectModelName(topUnitID)
        String imageName = imageSection.getField(modelName).getStringValue();
        unitImage = layUnitImageSet.getImage(imageName);

        if (unitImage == null) {
          Messages messages = Messages.getMessages();
          messages.err("QuadIsoLayUnitView", "updateImage: No image for unit "
View Full Code Here


    constructBasicFieldViews(gameData);
    }

  private void constructBasicFieldViews(GameDataAccessor gameData) throws RulesetException {
    Ruleset ruleset = registry.getRuleset("LayeredFieldView");
    Section basicFVSection = ruleset.getSection("BasicFieldViews");
   
    constructTerrainView(basicFVSection.getField("TerrainView"), gameData);
  }
View Full Code Here

TOP

Related Classes of civquest.parser.ruleset.Section

Copyright © 2018 www.massapicom. 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.