Opened 7 years ago
Closed 6 years ago
#4368 closed defect (fixed)
Add another path placement method to rmgen lib
Reported by: | FeXoR | Owned by: | FeXoR |
---|---|---|---|
Priority: | Should Have | Milestone: | Alpha 23 |
Component: | Maps | Keywords: | |
Cc: | Patch: |
Description (last modified by )
The two maps Deep Forest and Schwarzwald both use the same path placement method. That method is much more irregular and allows path bended to either side as well as roughly straight paths. So it would be a nice addition to the much more regular existing path placement method in the libs.
This method should be put into the rmgen lib as a function to be then used in both maps.
Schwarzwald should have the ammount of paths changed to one roughly straight one to the lake and one to each naigboring player from each player ... while we're at it ;)
Change History (1)
comment:1 by , 6 years ago
Description: | modified (diff) |
---|---|
Keywords: | simple removed |
Milestone: | Backlog → Alpha 23 |
Resolution: | → fixed |
Status: | new → closed |
Type: | enhancement → defect |
Note:
See TracTickets
for help on using tickets.
Ah, I came to the same conclusion.
In r20879:
Extract a RandomPathPlacer prototype from Deep Forest (r11444) and Schwarzwald (r15327) 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 r20354.
Use vector algebra and the mapCenter getter, refs #4845, #4854.