From 294723d03f3e1ff8a79390f4b90f9096665041e4 Mon Sep 17 00:00:00 2001 From: belugas Date: Tue, 23 Jan 2007 02:31:49 +0000 Subject: [PATCH] (svn r8365) -Cleanup: Remove unneeded and dead links, install Owner informations, add attribute m6. More to come on that matter... --- docs/landscape.html | 56 ++++++++++++++++++++++++++------------------- 1 file changed, 33 insertions(+), 23 deletions(-) diff --git a/docs/landscape.html b/docs/landscape.html index 50436627af..4b61b235f2 100644 --- a/docs/landscape.html +++ b/docs/landscape.html @@ -10,22 +10,28 @@

Landscape

-

-Five attributes hold the information about a tile. -These attributes are referred to as - "type_height", - "m1", - "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. -

+

Seven attributes (counting "type_height") hold the informations + about a tile. These attributes are referred to as "type_height", + "m1", "m2", + "m3", "m4", + "m5" and "m6". + 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 representation of the tile-layout have a look at + Landscape grid page.

+ +

The owner of a tile, as frequently associated with attribute m1, can be either players (human or AI) or "Game entities". +They are identified using: +

+ +

OTTD's class-specific periodic tile processing routine is called once every +256 ticks for each tile.

@@ -188,7 +194,7 @@ Town building
ClassMeaning & details of encoding
@@ -381,7 +387,7 @@ exit towards: 47 - NE, 48 - SE, 49 - SW, 4A
Type Size Climates Description
00  1×1temperatetall office block
  • m1: owner of the station
  • -
  • m2: index into the array of stations
  • +
  • m2: index into the array of stations
  • m3 bits 0..3: track type for railway stations, must be 0 for all the other stations
  • m3 bits 4..7: persistent random data for newstations
  • m4 = custom station id; 0 means standard graphics
  • @@ -436,7 +442,7 @@ Tiles of this class form an invisible, one tile wide border at the south (bottom Industry tile