diff --git a/docs/landscape.html b/docs/landscape.html --- a/docs/landscape.html +++ b/docs/landscape.html @@ -11,7 +11,17 @@

Landscape

-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. +Five attributes hold the information about a tile. +These attributes are referred to as + "type_height", + "owner", + "m2", + "m3", + "m4" and + "m5". +The most important value is the class of a tile, stored in the upper 4 bits of the type_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.

OTTD's class-specific periodic tile processing routine is called once every +256 ticks for each tile. @@ -22,7 +32,7 @@ OTTD's class-specific periodic tile proc 0

1 -map5 bit 7 clear: railway track +m5 bit 7 clear: railway track -map5 bits 7 and 6 set: railway depot / checkpoints +m5 bits 7 and 6 set: railway depot / checkpoints 2 -map5 bits 7..4 clear: road +m5 bits 7..4 clear: road -map5 bit 4 set, bits 7..5 clear: level crossing +m5 bit 4 set, bits 7..5 clear: level crossing -map5 bit 5 set: road depot +m5 bit 5 set: road depot 3 Town building @@ -287,9 +297,9 @@ Town building 4 Trees 5 Station tile 6 @@ -431,19 +441,19 @@ Tiles of this class form an invisible, o 8 Industry tile 9 -map5 bits 7..4 clear: tunnel entrance/exit +m5 bits 7..4 clear: tunnel entrance/exit -map5 bit 7 set: bridge +m5 bit 7 set: bridge A diff --git a/docs/landscape_grid.html b/docs/landscape_grid.html --- a/docs/landscape_grid.html +++ b/docs/landscape_grid.html @@ -14,22 +14,22 @@

Landscape

-Five arrays are used to encode the information of the contents of the tile. +Five attributes hold the information about a tile. This can be seen in the Landscape document. This page tries to give an overview of used and free bits of the array so you can quickly see what is used and what is not.

- - - - - + + + + +
class_map_owner[L1] (8)_map2[L2] (16)_map3[lo& hi,L3] (16)_map_type_and_height[L4] (8)_map5[L5] (8)owner[L1] (8)m2[L2] (16)m3/m4[L3] (16)type_height[L4] (8)m5[L5] (8)
bits