Examples of MapGenerator


Examples of civquest.map.MapGenerator

  }

  // Just for adding a sample map as long as this can't be done in a proper way
  private void constructMap() throws ConfigurationException {
    Game game = Game.getGame();
    MapGenerator mg = new MapGenerator(game.getRegistry());
    mg.generate();   
  }
View Full Code Here

Examples of civquest.map.MapGenerator

  }

  private void constructMap() throws ConfigurationException {
    Game game = Game.getGame();
    MapGenerator mg = new MapGenerator(game.getRegistry());
    mg.generateEmptyMap();       
  }
View Full Code Here

Examples of civquest.map.MapGenerator

  }

  public void actionPerformed(FunctionActionEvent e) {
    try {
      Game game = Game.getGame();
      MapGenerator mg = new MapGenerator(game.getRegistry());
      Game.setMapData(mg.generate());
     
      civQuest.getGlobalFunctionComponent().scenarioDataChanged(game);
      civQuest.repaint();
    } catch (RulesetException ex) {
      CivQuest.showErrorQuitDialog("There is a problem related to ruleset-loading:", ex)
View Full Code Here

Examples of com.dtrules.mapping.MapGenerator

     * @throws Exception
     */
    @Deprecated
    public void generateMap(String mapping, String filename) throws Exception {
        RuleSet        rs   = getRuleSet();
        IMapGenerator   mgen = new MapGenerator();          
        mgen.generateMapping(
                mapping,
                rs.getFilepath()+rs.getEDD_XMLName(),
                rs.getWorkingdirectory()+"map.xml");
    }
View Full Code Here

Examples of com.dtrules.mapping.MapGenerator

    public void generateMap(int version, String mapping, String filename) throws Exception {
        filename = filename.trim();
        RuleSet        rs   = getRuleSet();
        IMapGenerator   mgen;
        if(version == 1){
            mgen = new MapGenerator();
        }else{
            mgen = new MapGenerator2();
        }
        if(!filename.toLowerCase().endsWith(".xml")){
            filename += ".xml";
View Full Code Here

Examples of com.dtrules.mapping.MapGenerator

     * @throws Exception
     */
    @Deprecated
    public void generateMap(String mapping, String filename) throws Exception {
        RuleSet        rs   = getRuleSet();
        IMapGenerator   mgen = new MapGenerator();          
        mgen.generateMapping(
                mapping,
                rs.getFilepath()+rs.getEDD_XMLName(),
                rs.getWorkingdirectory()+"map.xml");
    }
View Full Code Here

Examples of com.dtrules.mapping.MapGenerator

    public void generateMap(int version, String mapping, String filename) throws Exception {
        filename = filename.trim();
        RuleSet        rs   = getRuleSet();
        IMapGenerator   mgen;
        if(version == 1){
            mgen = new MapGenerator();
        }else{
            mgen = new MapGenerator2();
        }
        if(!filename.toLowerCase().endsWith(".xml")){
            filename += ".xml";
View Full Code Here

Examples of com.dtrules.mapping.MapGenerator

     * @throws Exception
     */
    @Deprecated
    public void generateMap(String mapping, String filename) throws Exception {
        RuleSet        rs   = getRuleSet();
        IMapGenerator   mgen = new MapGenerator();          
        mgen.generateMapping(
                mapping,
                rs.getFilepath()+rs.getEDD_XMLName(),
                rs.getWorkingdirectory()+"map.xml");
    }
View Full Code Here

Examples of com.dtrules.mapping.MapGenerator

    public void generateMap(int version, String mapping, String filename) throws Exception {
        filename = filename.trim();
        RuleSet        rs   = getRuleSet();
        IMapGenerator   mgen;
        if(version == 1){
            mgen = new MapGenerator();
        }else{
            mgen = new MapGenerator2();
        }
        if(!filename.toLowerCase().endsWith(".xml")){
            filename += ".xml";
View Full Code Here

Examples of com.dtrules.mapping.MapGenerator

     * @throws Exception
     */
    @Deprecated
    public void generateMap(String mapping, String filename) throws Exception {
        RuleSet        rs   = getRuleSet();
        IMapGenerator   mgen = new MapGenerator();          
        mgen.generateMapping(
                mapping,
                rs.getFilepath()+rs.getEDD_XMLName(),
                rs.getWorkingdirectory()+"map.xml");
    }
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.