Movement zone
Pathfinding classes, each deciding which terrain and obstacles a type of that class may cross.
- Engine enum
MZoneType- Input form
- Named token
A movement zone class decides which cells count as crossable when the engine divides the map into movement zones and plans routes. MovementZone sets a type’s class. The ten classes are fixed by the engine.
Each class accepts some of the cell ratings that the zone map describes and refuses the rest. The table above names the cells each class accepts. Open land is the rating for a cell that no other rating covers. TemperateOccupationBits covers how much of a cell a terrain object fills.
Apart from Subterannean, which also makes the type burrow (see MovementZone), a class decides only where routes may go. Destroyer plans routes through walls and through trees and rocks that fill their cells, but the class breaks through none of them. Whether a vehicle shoots a wall in its way depends on its primary weapon’s warhead, as Walls in combat and movement describes. Whether a vehicle crushes a crushable wall or object it drives onto is set by Crusher=yes, which a type of any class can use.
Values
10 of 10
| Input | Meaning | Engine constant | Stored value |
|---|---|---|---|
Normal | Open land only. | MZONE_NORMAL | 0 |
Crusher | Open land and cells with a crushable overlay. | MZONE_CRUSHER | 1 |
Destroyer | Crusher cells, plus wall cells and cells a terrain object fills completely. | MZONE_DESTROYER | 2 |
AmphibiousDestroyer | Destroyer cells, plus water and beach. | MZONE_AMPHIBIOUS_DESTROYER | 3 |
AmphibiousCrusher | Crusher cells, plus water and beach. | MZONE_AMPHIBIOUS_CRUSHER | 4 |
Amphibious | Open land, water and beach. | MZONE_AMPHIBIOUS | 5 |
Subterannean | Every cell in the playable area except water, beach and cells a terrain object partly fills.The accepted token preserves the engine's historical spelling. | MZONE_SUBTERANNEAN | 6 |
Infantry | Open land and cells a terrain object partly fills. | MZONE_INFANTRY | 7 |
InfantryDestroyer | Infantry cells, plus cells with a crushable overlay, wall cells and cells a terrain object fills completely. | MZONE_INFANTRY_DESTROYER | 8 |
Fly | Every cell in the playable area. | MZONE_FLYER | 9 |
No enum values match this filter.
Used by
MovementZoneINI key
Source files
Linked at revision 51b52aa38392.