Implement a DiskPlacer to enable random map scripts chosing all points inside a circl...
commit0110dbb3484859faaa567d7fb1d0a700f69ae222
authorelexis <elexis@3db68df2-c116-0410-a063-a993310a9797>
Fri, 16 Feb 2018 18:49:54 +0000 (16 18:49 +0000)
committerelexis <elexis@3db68df2-c116-0410-a063-a993310a9797>
Fri, 16 Feb 2018 18:49:54 +0000 (16 18:49 +0000)
treeb284e8d45632f0ab210a0776a069163b36eef407
parentd9c4647e29814035fc56814f6843522b146629a8
Implement a DiskPlacer to enable random map scripts chosing all points inside a circle without using a special case of the other placers.

Especially useful if the center position doesn't meet the constraint or is outside of the map boundary.
Removing the preliminary boundary check from the centered placers seems to come with a too high performance penalty, for instance when creating forests.

git-svn-id: https://svn.wildfiregames.com/public/ps/trunk@21225 3db68df2-c116-0410-a063-a993310a9797
binaries/data/mods/public/maps/random/belgian_uplands.js
binaries/data/mods/public/maps/random/caledonian_meadows.js
binaries/data/mods/public/maps/random/gear.js
binaries/data/mods/public/maps/random/lions_den.js
binaries/data/mods/public/maps/random/mediterranean.js
binaries/data/mods/public/maps/random/ngorongoro.js
binaries/data/mods/public/maps/random/pompeii.js
binaries/data/mods/public/maps/random/red_sea.js
binaries/data/mods/public/maps/random/rmgen/placer_centered.js
binaries/data/mods/public/maps/random/rmgen/placer_noncentered.js
binaries/data/mods/public/maps/random/wild_lake.js