Package civquest.parser.ruleset

Examples of civquest.parser.ruleset.Registry


  }

  private void constructNations(LoadingStep step)
    throws Exception {
   
    Registry nationRegistry = registry.getSubRegistry("nations");
    Registry visRegistry = registry.getSubRegistry("visibility");
   
    this.nations.clear();
    Set<LoadedData> nationSet = loadedData.getLoadedDataHashSet("nations");
    for (LoadedData nationData : nationSet) {
      Nation nation = new Nation(nationRegistry, visRegistry,
View Full Code Here


    this.game = game;
   
    this.mapRegistry = registry.getSubRegistry("map");
    this.config = new Configuration(mapRegistry);

    Registry destroyRegistry = mapRegistry.getSubRegistry("destroy");
    Ruleset dudRuleset = destroyRegistry.getRuleset("defaultUnitDestroy");
    this.unitDestroyManager = new DefaultUnitDestroyManager(dudRuleset);
  }
View Full Code Here

//                 else
//           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

TOP

Related Classes of civquest.parser.ruleset.Registry

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.