Package civquest.parser.ruleset

Examples of civquest.parser.ruleset.Ruleset


//           setNoField(x, y);
//     }

  private void loadConfiguration(Registry registry) throws RulesetException {
    Registry mapRegistry = registry.getSubRegistry("map");
    Ruleset isoRuleset = mapRegistry.getRuleset("iso");
    Section distSection = isoRuleset.getSection("distances");
    diagonalDistance = distSection.getField("diagonal").getIntValue();
    straightDistance = distSection.getField("straight").getIntValue();
  }
View Full Code Here


  public RandomTerrainOverlapManager(GameDataAccessor gameData, Registry overlapRegistry)
    throws RulesetException {
    reset(gameData);
   
    Ruleset ruleset = overlapRegistry.getRuleset("randomTerrainManager");
    Section listenerSection = ruleset.getSection("listens");

    try {
      RulesetGameChangeLoader.addListener(listenerSection, this);
     } catch (GameChangeException e) {
       Messages.getMessages().err("RTOverlapManager", "Error when setting up listeners: "
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.Ruleset

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.