Land type
Terrain classes used by movement, pathfinding, and terrain restrictions.
- Engine enum
LandType- Input form
- Named token
A cell’s land type is derived rather than authored: it comes from the tile drawn beneath the cell, and a tile can only produce nine of these twelve. Wall, Tiberium and Weeds reach a cell through an overlay standing on it, which Land covers. A rules setting can override both: with CliffBackImpassability=2, a cell standing a full cliff step below any of the six neighbors that setting examines is rewritten to Rock at the end of the same pass. Only four of the twelve are open to that rewrite on the ordinary path — Clear, Water, Beach and Ice — so a cell whose tile already reports Road, Rough or Railroad keeps that class whatever stands above it.
Each token also names the rules section that holds that terrain’s movement costs — [Clear], [Road], [Water] and the rest — so the twelve classes are what speed type is costed against. The set is fixed by the engine: a mod can retune a section but cannot add a thirteenth terrain class or a section for one.
Values
12 of 12
| Input | Meaning | Engine constant | Stored value |
|---|---|---|---|
Clear | Clear ground. | LAND_CLEAR | 0 |
Road | Road surface. | LAND_ROAD | 1 |
Water | Open water. | LAND_WATER | 2 |
Rock | Impassable rock. | LAND_ROCK | 3 |
Wall | Wall terrain. | LAND_WALL | 4 |
Tiberium | Tiberium field. | LAND_TIBERIUM | 5 |
Beach | Beach terrain. | LAND_BEACH | 6 |
Rough | Rough ground. | LAND_ROUGH | 7 |
Ice | Solid ice. | LAND_ICE | 8 |
Railroad | Rail track terrain. | LAND_RAILROAD | 9 |
Tunnel | Tunnel terrain. | LAND_TUNNEL | 10 |
Weeds | Vein weed terrain. | LAND_WEEDS | 11 |
No enum values match this filter.
Used by
LandINI keyMovementRestrictedToINI key
Source files
Linked at revision 59fae722af8c.