mirror of
https://gitea.wildfiregames.com/0ad/0ad
synced 2026-07-04 05:55:47 -07:00
Based on Philip's work located at http://git.wildfiregames.com/gitweb/?p=0ad.git;a=shortlog;h=refs/heads/projects/philip/pathfinder Includes code by wraitii, sanderd17 and kanetaka. An updated version of docs/pathfinder.pdf describing the changes in detail will be committed ASAP. Running update-workspaces is needed after this change. Fixes #1756. Fixes #930, #1259, #2908, #2960, #3097 Refs #1200, #1914, #1942, #2568, #2132, #2563 This was SVN commit r16751.
69 lines
2.2 KiB
XML
69 lines
2.2 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<Pathfinder>
|
|
<!-- Sets limit on the number of same turns moves we will process -->
|
|
<!-- Setting the value to 0 disable this functionality -->
|
|
<MaxSameTurnMoves>64</MaxSameTurnMoves>
|
|
|
|
<PassabilityClasses>
|
|
|
|
<unrestricted/>
|
|
|
|
<!-- Unit pathfinding classes: -->
|
|
<!-- 'default-terrain-only' is used for wall building placement
|
|
and by the AI pathfinder; it must be kept in sync with 'default'
|
|
-->
|
|
<default>
|
|
<MaxWaterDepth>2</MaxWaterDepth>
|
|
<MaxTerrainSlope>1.0</MaxTerrainSlope>
|
|
<Clearance>1.0</Clearance>
|
|
</default>
|
|
<default-no-clearance>
|
|
<MaxWaterDepth>2</MaxWaterDepth>
|
|
<MaxTerrainSlope>1.0</MaxTerrainSlope>
|
|
<Clearance>0.0</Clearance>
|
|
</default-no-clearance>
|
|
<default-terrain-only>
|
|
<MaxWaterDepth>2</MaxWaterDepth>
|
|
<MaxTerrainSlope>1.0</MaxTerrainSlope>
|
|
</default-terrain-only>
|
|
<siege-large>
|
|
<MaxWaterDepth>2</MaxWaterDepth>
|
|
<MaxTerrainSlope>1.0</MaxTerrainSlope>
|
|
<Clearance>4.0</Clearance>
|
|
</siege-large>
|
|
<ship>
|
|
<MinWaterDepth>1</MinWaterDepth>
|
|
<Clearance>12.0</Clearance>
|
|
</ship>
|
|
<ship-small>
|
|
<MinWaterDepth>1</MinWaterDepth>
|
|
<Clearance>4.0</Clearance>
|
|
</ship-small>
|
|
|
|
<!-- Building construction classes:
|
|
* Land is used for most buildings, which must be away
|
|
from water and not on cliffs or mountains.
|
|
* Shore is used for docks, which must be near water and
|
|
land, yet shallow enough for builders to approach.
|
|
|
|
(These should not use <Clearance>, because the foundation placement
|
|
checker already does precise obstruction-shape-based checking.)
|
|
-->
|
|
<building-land>
|
|
<MaxWaterDepth>0</MaxWaterDepth>
|
|
<MinShoreDistance>4.0</MinShoreDistance>
|
|
<MaxTerrainSlope>1.0</MaxTerrainSlope>
|
|
</building-land>
|
|
<building-shore>
|
|
<MaxShoreDistance>8.0</MaxShoreDistance>
|
|
<MaxTerrainSlope>1.25</MaxTerrainSlope>
|
|
</building-shore>
|
|
|
|
<!-- Territory growth influences: -->
|
|
<territory>
|
|
<MaxWaterDepth>2</MaxWaterDepth>
|
|
<MaxTerrainSlope>1.0</MaxTerrainSlope>
|
|
</territory>
|
|
|
|
</PassabilityClasses>
|
|
</Pathfinder>
|