Skip to content

Movement zone

INI referenceEnumsMZoneType

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

InputMeaningEngine constantStored value
NormalOpen land only.MZONE_NORMAL0
CrusherOpen land and cells with a crushable overlay.MZONE_CRUSHER1
DestroyerCrusher cells, plus wall cells and cells a terrain object fills completely.MZONE_DESTROYER2
AmphibiousDestroyerDestroyer cells, plus water and beach.MZONE_AMPHIBIOUS_DESTROYER3
AmphibiousCrusherCrusher cells, plus water and beach.MZONE_AMPHIBIOUS_CRUSHER4
AmphibiousOpen land, water and beach.MZONE_AMPHIBIOUS5
SubteranneanEvery 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_SUBTERANNEAN6
InfantryOpen land and cells a terrain object partly fills.MZONE_INFANTRY7
InfantryDestroyerInfantry cells, plus cells with a crushable overlay, wall cells and cells a terrain object fills completely.MZONE_INFANTRY_DESTROYER8
FlyEvery cell in the playable area.MZONE_FLYER9

Used by

Source files

Linked at revision 51b52aa38392.