Package worldBuilder

Class RPGMLeveler


  • public class RPGMLeveler
    extends java.lang.Object
    maps altitude/depth/slope information into RPGMaker "levels", through use of corresponding percentile-to-level maps. RPGMaker L1/2 tiling is more commonly based on (bucketized) levels rather than altitudes and depths. This makes it much easier for a game designer to tweak the (percentile-to-level) mapping to get the desired output. The per-tile altitude/depth/slope are obtained from the Tiler (into which they have already been loaded). The percentile to level maps are computed by the Exporter (based on the corresponding sliders).
    • Constructor Summary

      Constructors 
      Constructor Description
      RPGMLeveler()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int[][] getLevels​(RPGMTiler tiler, int[] altMap, int[] waterMap, double plateau, int[] typeMap)
      compute an abstract level for every map square
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • RPGMLeveler

        public RPGMLeveler()
    • Method Detail

      • getLevels

        public int[][] getLevels​(RPGMTiler tiler,
                                 int[] altMap,
                                 int[] waterMap,
                                 double plateau,
                                 int[] typeMap)
        compute an abstract level for every map square
        Parameters:
        altMap - altitude pctile to level map
        waterMap - depth pctile to level map
        plateau - maximum slope for a plateau
        typeMap - map from levels to terrain types
        Returns:
        int[][] level of every square