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

The names say which cells join a class’s movement zones, not what an object of that class may do to them. Crusher and the three destroyer classes decide only whether a cell held by a crushable overlay, a wall, or a terrain object that fills every one of its standing places counts as crossable while the zones are built and a route is plotted — so Destroyer opens fully blocking trees and rocks as readily as it opens walls. Whether a vehicle actually flattens a wall it drives into is Crusher=yes, which is read separately and can be set on a type of any class.

What each class is compared against is a single blockage rating held for the cell rather than its land type; TemperateOccupationBits covers how a terrain object’s occupation figure moves its cell between classes without changing the terrain at all. The ten classes are fixed by the engine, each costing the map a zone table of its own; MovementZone covers what naming one does to a type.

Values

10 of 10

InputMeaningEngine constantStored value
NormalTerrestrial movement to which every crushable and every blocked cell is closed.MZONE_NORMAL0
CrusherTerrestrial movement to which a cell held by a crushable overlay is open.MZONE_CRUSHER1
DestroyerTerrestrial movement to which a cell held by a crushable overlay, a wall, or a fully blocking terrain object is open.MZONE_DESTROYER2
AmphibiousDestroyerDestroyer movement carried across water as well.MZONE_AMPHIBIOUS_DESTROYER3
AmphibiousCrusherCrusher movement carried across water as well.MZONE_AMPHIBIOUS_CRUSHER4
AmphibiousMovement across land and water.MZONE_AMPHIBIOUS5
SubteranneanSubterranean movement.The accepted token preserves the engine's historical spelling.MZONE_SUBTERANNEAN6
InfantryInfantry movement.MZONE_INFANTRY7
InfantryDestroyerInfantry movement to which crushable, wall and fully blocking terrain cells are open as well.MZONE_INFANTRY_DESTROYER8
FlyAir movement, to which every cell inside the playable area is open.MZONE_FLYER9

Used by

Source files

Linked at revision 59fae722af8c.