Package worldBuilder
Class RPGMLeveler
- java.lang.Object
-
- worldBuilder.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
-
-
-
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 mapwaterMap
- depth pctile to level mapplateau
- maximum slope for a plateautypeMap
- map from levels to terrain types- Returns:
- int[][] level of every square
-
-