Extract a RandomPathPlacer prototype from Deep Forest (rP11444) and Schwarzwald ...
commitb773f20c466e9c2428c7c475bb23ad22fcfdb731
authorelexis <elexis@3db68df2-c116-0410-a063-a993310a9797>
Tue, 16 Jan 2018 04:12:23 +0000 (16 04:12 +0000)
committerelexis <elexis@3db68df2-c116-0410-a063-a993310a9797>
Tue, 16 Jan 2018 04:12:23 +0000 (16 04:12 +0000)
tree9fb848dcceb110eca6caaab2aa2ab40d4bf8f117
parent661f90cda81a959a0b44a0f3d8f2f81d9654a69d
Extract a RandomPathPlacer prototype from Deep Forest (rP11444) and Schwarzwald (rP15327) duplication, refs #4805, #4804.

This allows creation of paths that are not linear nor sine-shaped like the PathPlacer, refs #892.
To mimic the per-tile path elevation randomization on Deep Forest, use a SmoothElevationPainter and it's randomization argument from rP20354.
Use vector algebra and the mapCenter getter, refs #4845, #4854.

git-svn-id: https://svn.wildfiregames.com/public/ps/trunk@20879 3db68df2-c116-0410-a063-a993310a9797
binaries/data/mods/public/maps/random/deep_forest.js
binaries/data/mods/public/maps/random/rmgen/placer_noncentered.js
binaries/data/mods/public/maps/random/schwarzwald.js