Codota Logo
MapLoader.getLoaderForListedMap
Code IndexAdd Codota to your IDE (free)

How to use
getLoaderForListedMap
method
in
jsettlers.logic.map.loading.MapLoader

Best Java code snippets using jsettlers.logic.map.loading.MapLoader.getLoaderForListedMap (Showing top 3 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
Point p =
  • Codota Iconnew Point(x, y)
  • Codota Iconnew Point()
  • Codota IconMouseEvent e;e.getPoint()
  • Smart code suggestions by Codota
}
origin: jsettlers/settlers-remake

@Override
public synchronized void foundMap(IListedMap map) {
  MapLoader loader;
  try {
    loader = MapLoader.getLoaderForListedMap(map);
  } catch (Exception e) {
    System.err.println("Cought exception while loading header for " + map.getFileName());
    e.printStackTrace();
    return;
  }
  MapFileHeader mapHead = loader.getFileHeader();
  // - if the map can't be load (e.g. caused by wrong format) the mapHead gets NULL! -> hide/ignore this map from user
  if (mapHead != null) {
    MapType type = loader.getFileHeader().getType();
    if ((type == MapType.SAVED_SINGLE)) {
      savedMaps.add((RemakeMapLoader) loader);
    } else {
      freshMaps.add(loader);
    }
  }
}
origin: jsettlers/settlers-remake

  /**
   * Main entry point
   * 
   * @param args
   */
  public static void main(String[] args) {

    try {
      ExceptionHandler.setupDefaultExceptionHandler();

      final File file = new File(args[0]);

      JSettlersGame game = new JSettlersGame(MapLoader.getLoaderForListedMap(new DirectoryMapLister.ListedMapFile(file)),
          123456L, (byte) 0, null);
      game.start();

    } catch (Exception e) {
      ExceptionHandler.displayError(e, "Error launching game");
    }

  }
}
origin: jsettlers/settlers-remake

IStartingGame game;
if (loadableReplayFile == null) {
  MapLoader mapLoader = MapLoader.getLoaderForListedMap(new DirectoryMapLister.ListedMapFile(new File(mapFile)));
  if (mapLoader.getFileHeader().getType() == MapFileHeader.MapType.NORMAL) {
    byte playerId = 0;
jsettlers.logic.map.loadingMapLoadergetLoaderForListedMap

Popular methods of MapLoader

  • getMaxPlayers
  • getCreationDate
  • getFileHeader
  • getMapData
    Gets the map data for this loader, if the data is available.
  • getMapId
  • getMapName
  • getDescription
  • getImage
  • getListedMap
  • getMinPlayers
  • loadMainGrid
  • checkExtention
  • loadMainGrid,
  • checkExtention,
  • getPlayers,
  • isExtensionKnown

Popular in Java

  • Start an intent from android
  • getResourceAsStream (ClassLoader)
  • orElseThrow (Optional)
  • startActivity (Activity)
  • FileReader (java.io)
    A specialized Reader that reads from a file in the file system. All read requests made by calling me
  • PrintStream (java.io)
    A PrintStream adds functionality to another output stream, namely the ability to print representatio
  • Date (java.util)
    A specific moment in time, with millisecond precision. Values typically come from System#currentTime
  • TimeUnit (java.util.concurrent)
    A TimeUnit represents time durations at a given unit of granularity and provides utility methods to
  • Notification (javax.management)
  • Servlet (javax.servlet)
    Defines methods that all servlets must implement.A servlet is a small Java program that runs within
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now