Package civquest.map

Examples of civquest.map.MapGenerator.generate()


  // 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();   
  }

  // This method serves for adding some players/nations, as long as this
  // can't be done in a regular way
  private void addSomePlayersAndNations()
View Full Code Here


  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

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.