From 5c5840417e2f03514c51098f4786c6c1d6030b59 Mon Sep 17 00:00:00 2001 From: tron Date: Thu, 21 Jul 2005 06:13:17 +0000 Subject: (svn r2659) Catch up with reality in the landscape documentation --- docs/landscape.html | 240 +++++++++++++++++++++++++++------------------------- 1 file changed, 125 insertions(+), 115 deletions(-) (limited to 'docs/landscape.html') diff --git a/docs/landscape.html b/docs/landscape.html index b2e307888..930be700f 100644 --- 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 processing routine is called once every +256 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, one tile wide border at the south (bottom 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 -- cgit v1.2.3-54-g00ecf