diff --git a/docs/landscape.html b/docs/landscape.html index 4b57808a16..2f4f6c7752 100644 --- a/docs/landscape.html +++ b/docs/landscape.html @@ -2,22 +2,19 @@
- + --Five arrays are used to encode the information of the contents of each tile. These arrays are referred to as map_owner, map2, map3_lo, type_and_height and map5. The known encodings are listed in the table below. The most important value is the class of a tile, stored in the upper 4 bits of the type_and_height array. The lower 4 bits are used to encode the height and slope data. For a graphical represenation of the tile-layout have a look at Landscape grid page. +Five arrays are used to encode the information of the contents of each tile. These arrays are referred to as "map_owner", "map2", "map3_lo|_hi", "map_type_and_height" and "map5". The known encodings are listed in the table below. The most important value is the class of a tile, stored in the upper 4 bits of the type_and_height array. The lower 4 bits are used to encode the height and slope data. For a graphical represenation of the tile-layout have a look at Landscape grid page.
-Owner values 00 through 07 are companies (they're indices into the array of companies), 10 is no owner, 11 appears to be reserved for water, 80 and above are towns (in this case the low 7 bits contain an index into the town array). -
--TTD's class-specific periodic tile processing routine is called once every +256 ticks for each tile. +OTTD's class-specific periodic tile processing routine is called once every +256 ticks for each tile.
-Classes B through F are reserved. The presence of a tile in one of the reserved classes will crash TTD. +Classes B through F are reserved. The presence of a tile in one of the reserved classes will crash OTTD. |
+
type | -_map_owner[L1] | -_map2[L2] | -_map3[lo& hi,L3] | -_map_type_and_height[L4] | -_map5[L5] | +class | +_map_owner[L1] (8) | +_map2[L2] (16) | +_map3[lo& hi,L3] (16) | +_map_type_and_height[L4] (8) | +_map5[L5] (8) |
---|---|---|---|---|---|---|---|---|---|---|---|
ground | +(0) ground | XXXX XXXX | -OOOO OOOO OOOO OOOO | -XXXX OOOO OOXX XXXX | +OOOO OOOO OOOO OOOO | +XXXX OOOO OOXX XXXX | XXXX XXXX | -XXXX XOXX | +XXXX XOXX | ||
rail | -XXXX XXXX | -XXXX XXXX OOOO OOOO + | (1) rail | +XXXX XXXX | +XXXX XXXX OOOO OOOO |
- XXXX XXXX XXXO OOOO + | XXXX XXXX XXXO OOOO |
XXXX XXXX | XXXX XXXX @@ -51,105 +61,105 @@ the array so you can quickly see what is used and what is not. | ||
|
-inherit- | -OOOO OOOO OOOO OOOO | -XXXX XOOO XXXX XXXX | +OOOO OOOO OOOO OOOO | +XXXX XOOO XXXX XXXX | -inherit- | -XXXO OOXX | +XXXO OOXX | |||
road | +(2) road | XXXX XXXX | -XXXX XXXX XXXX XXXX | -OOOO OOOO XXXX XXXX | +XXXX XXXX XXXX XXXX | +OOOO OOOO XXXX XXXX | XXXX XXXX | XXXX XXXX | |||
|
-inherit- | -XXXX XXXX XXXX XXXX | +XXXX XXXX XXXX XXXX | XXXX XXXX XXXX XXXX | -inherit- | -OOXX XXXX | +OOXX XXXX | ||||
|
-inherit- | -OOOO OOOO OOOO OOOO | -OOOO OOOO OOOO OOOX | +OOOO OOOO OOOO OOOO | +OOOO OOOO OOOO OOOX | -inherit- | XXXX XXXX | ||||
town | -XXXX XXXX | +(3) town | +XXXX XXXX | XXXX XXXX XXXX XXXX |
XXXX XXXX XXXX XXXX |
XXXX XXXX | -XXXX XXOX | +XXXX XXOX | |||
trees | -XXXX XXXX | -XXXX XXOO OOOO OOOO | -XXXX XXXX OOXX XXXX | +(4) trees | +XXXX XXXX | +XXXX XXOO OOOO OOOO | +XXXX XXXX OOXX XXXX | XXXX XXXX | -XXXO OOXX | +XXXO OOXX | |
station | +(5) station | XXXX XXXX | XXXX XXXX XXXX XXXX | -XXXX XOOO XXXX XXXX | +XXXX XOOO XXXX XXXX | XXXX XXXX | XXXX XXXX | ||||
water | +(6) water | XXXX XXXX | -OOOO OOOO OOOO OOOO | -OOOO OOOO OOOO OOOO | +OOOO OOOO OOOO OOOO | +OOOO OOOO OOOO OOOO | XXXX XXXX | XXXX XXXX | |||
industry | -XXXX XOOX | +(8) industry | +XXXX XOOX | XXXX XXXX XXXX XXXX | -OOOO OOOO OOOO OOOO | +OOOO OOOO OOOO OOOO | XXXX XXXX | XXXX XXXX | |||
|
-inherit- | -inherit- | -XXXX XXXX OOOO OOOO | +XXXX XXXX OOOO OOOO | -inherit- | -inherit- | |||||
|
-inherit- | @@ -161,11 +171,10 @@ the array so you can quickly see what is used and what is not.||||||||||
|
- XXXX -XXXX | +XXXX XXXX | -inherit- | -inherit- | -inherit- | @@ -174,7 +183,7 @@ XXXX||||||
|
-inherit- | @@ -186,45 +195,45 @@ XXXX||||||||||
|
- XXXX XXOX | +XXXX XXOX | -inherit- | -inherit- | -inherit- | -inherit- | |||||
tunnel | +(9) tunnel | XXXX XXXX | -OOOO OOOO OOOO OOOO | -XXXX OOOO OOOO OOOX | +OOOO OOOO OOOO OOOO | +XXXX OOOO OOOO OOOX | XXXX XXXX | XXXX XXXX | |||
|
XXXX XXXX | -XXXX XXXX OOOO OOOO | -XXXX XXXX OOOO OOOX | +XXXX XXXX OOOO OOOO | +XXXX XXXX OOOO OOOX | XXXX XXXX | XXXX XXXX | ||||
various (HQ) | +(10) various (HQ) | XXXX XXXX | -OOOO OOOO OOOO OOOO | -OOOO OOOO OOOO OOOO | +OOOO OOOO OOOO OOOO | +OOOO OOOO OOOO OOOO | XXXX XXXX | XXXX XXXX |