mirror of https://github.com/OpenTTD/OpenTTD
(svn r8956) -Documentation : complete reference of m6 usage is now available.
A few little cleanups here and there.release/0.6
parent
c8faa6bee2
commit
ed55f5f073
|
@ -11,15 +11,42 @@
|
||||||
<body>
|
<body>
|
||||||
|
|
||||||
<h3><a name="Landscape">Landscape</a></h3>
|
<h3><a name="Landscape">Landscape</a></h3>
|
||||||
<p>Seven attributes (counting "type_height") hold the informations about a tile.<BR>
|
<p>Seven attributes (counting "<span style="font-weight: bold;">type_height</span>") hold the informations about a tile.<BR>
|
||||||
These attributes are referred to as
|
These attributes are referred to as
|
||||||
"<span style="font-weight: bold;">type_height</span>",
|
"<span style="font-weight: bold;">type_height</span>",
|
||||||
"<span style="font-weight: bold;">m1</span>", "<span style="font-weight: bold;">m2</span>",
|
"<span style="font-weight: bold;">m1</span>", "<span style="font-weight: bold;">m2</span>",
|
||||||
"<span style="font-weight: bold;">m3</span>", "<span style="font-weight: bold;">m4</span>",
|
"<span style="font-weight: bold;">m3</span>", "<span style="font-weight: bold;">m4</span>",
|
||||||
"<span style="font-weight: bold;">m5</span>" and "<span style="font-weight: bold;">m6</span>".<BR>
|
"<span style="font-weight: bold;">m5</span>" and "<span style="font-weight: bold;">m6</span>".<BR>
|
||||||
The most important value is the class of a tile, stored in the upper 4 bits
|
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
|
of the <span style="font-weight: bold;">type_height</span> attribute. The lower 4 bits are used to encode the height and
|
||||||
slope data.<BR>
|
slope data.
|
||||||
|
</p>
|
||||||
|
|
||||||
|
Special Attribute : <span style="font-weight: bold;">m6</span>. There are 4 bits of it that are used accross multiple tile classes<br>
|
||||||
|
<ul>
|
||||||
|
<li>
|
||||||
|
<a name = "bridge_direction">
|
||||||
|
Bits 7..6 :
|
||||||
|
<table border="1">
|
||||||
|
<tr bgcolor="#CCCCCC"><td colspan="2">Presence and direction of bridge above,<br>for tiles that support this.</td></tr>
|
||||||
|
<tr><td><tt>00</tt> </td><td>no bridge</td></tr>
|
||||||
|
<tr><td><tt>01</tt> </td><td>Axis X (North-East)</td></tr>
|
||||||
|
<tr><td><tt>02</tt> </td><td>Axis Y (South-West)</td></tr>
|
||||||
|
</table>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<a name = "tropic_zone">
|
||||||
|
Bits 1..0 :
|
||||||
|
<table border="1">
|
||||||
|
<tr bgcolor="#CCCCCC"><td colspan="2">Only meaningfull in tropic climate.<br>It contains the definition of the two available zones</td></tr>
|
||||||
|
<tr><td><tt>00</tt> </td><td>invalid zone</td></tr>
|
||||||
|
<tr><td><tt>01</tt> </td><td>desert</td></tr>
|
||||||
|
<tr><td><tt>02</tt> </td><td>rain forest</td></tr>
|
||||||
|
</table>
|
||||||
|
In any other climate, those 2 bits are free of use.
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
<p>
|
||||||
For a graphical representation of the tile-layout have a look at
|
For a graphical representation of the tile-layout have a look at
|
||||||
<a href="landscape_grid.html">Landscape grid</a> page.
|
<a href="landscape_grid.html">Landscape grid</a> page.
|
||||||
</p>
|
</p>
|
||||||
|
@ -27,7 +54,7 @@
|
||||||
The <a name="OwnershipInfo">owner of a tile</a>, as frequently associated with attribute m1,
|
The <a name="OwnershipInfo">owner of a tile</a>, as frequently associated with attribute m1,
|
||||||
can be either players (human or AI) or "Game entities".
|
can be either players (human or AI) or "Game entities".
|
||||||
They are identified using:
|
They are identified using:
|
||||||
<table>
|
<table border="1">
|
||||||
<tr><td><tt>00</tt> </td><td align=left>current player</td></tr>
|
<tr><td><tt>00</tt> </td><td align=left>current player</td></tr>
|
||||||
<tr><td><tt>01..08</tt> </td><td align=left>AI or network players</td></tr>
|
<tr><td><tt>01..08</tt> </td><td align=left>AI or network players</td></tr>
|
||||||
<tr><td><tt>0F</tt> </td><td align=left>a town owns the tile</td></tr>
|
<tr><td><tt>0F</tt> </td><td align=left>a town owns the tile</td></tr>
|
||||||
|
@ -45,7 +72,7 @@
|
||||||
</tr>
|
</tr>
|
||||||
<tr bgcolor="#CCCCCC">
|
<tr bgcolor="#CCCCCC">
|
||||||
<td align=left><strong><a name="Class0"><tt> 0 </tt></a></strong></td>
|
<td align=left><strong><a name="Class0"><tt> 0 </tt></a></strong></td>
|
||||||
<td align=left> <strong>Ground </strong><td>
|
<td align=left> <strong>Ground </strong></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td valign=top nowrap> </td>
|
<td valign=top nowrap> </td>
|
||||||
|
@ -127,6 +154,8 @@
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
</li>
|
</li>
|
||||||
|
<li>m6 bits 7..6 : Possibility of a bridge above, in the <a href="#bridge_direction">direction specified</a></li>
|
||||||
|
<li>m6 bits 1..0 : <a href="#tropic_zone">Tropic zone definition</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
@ -432,6 +461,8 @@
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
|
<li>m6 bits 7..6 : Possibility of a bridge above, in the <a href="#bridge_direction">direction specified</a></li>
|
||||||
|
<li>m6 bits 1..0 : <a href="#tropic_zone">Tropic zone definition</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
@ -523,6 +554,8 @@
|
||||||
<li>m5 bit 2: set if crossing lights are on</li>
|
<li>m5 bit 2: set if crossing lights are on</li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
|
<li>m6 bits 7..6 : Possibility of a bridge above, in the <a href="#bridge_direction">direction specified</a></li>
|
||||||
|
<li>m6 bits 1..0 : <a href="#tropic_zone">Tropic zone definition</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
@ -1148,6 +1181,7 @@
|
||||||
One 'normal' floor has a height of 6 lift positions.</li>
|
One 'normal' floor has a height of 6 lift positions.</li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
|
<li>m6 bits 1..0 : <a href="#tropic_zone">Tropic zone definition</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
@ -1234,6 +1268,8 @@
|
||||||
<td>one of trees is withering </td>
|
<td>one of trees is withering </td>
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
|
</li>
|
||||||
|
<li>m6 bits 1..0 : <a href="#tropic_zone">Tropic zone definition</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
@ -1469,6 +1505,7 @@
|
||||||
</table>
|
</table>
|
||||||
</li>
|
</li>
|
||||||
<li>m6 bit 3: 1 when a drive through road stop is built over a town owned road, otherwise 0</li>
|
<li>m6 bit 3: 1 when a drive through road stop is built over a town owned road, otherwise 0</li>
|
||||||
|
<li>m6 bits 1..0 : <a href="#tropic_zone">Tropic zone definition</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
@ -1575,6 +1612,8 @@
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
</li>
|
</li>
|
||||||
|
<li>m6 bits 7..6 : Possibility of a bridge above, in the <a href="#bridge_direction">direction specified</a></li>
|
||||||
|
<li>m6 bits 1..0 : <a href="#tropic_zone">Tropic zone definition</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
@ -1907,6 +1946,7 @@
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
</li>
|
</li>
|
||||||
|
<li>m6 bits 1..0 : <a href="#tropic_zone">Tropic zone definition</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
@ -2012,6 +2052,8 @@
|
||||||
<li>m5 bits 1..0: DiagDirection onto the bridge</li>
|
<li>m5 bits 1..0: DiagDirection onto the bridge</li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
|
<li>m6 bits 7..6 : Possibility of a bridge above, in the <a href="#bridge_direction">direction specified</a></li>
|
||||||
|
<li>m6 bits 1..0 : <a href="#tropic_zone">Tropic zone definition</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
@ -2053,6 +2095,8 @@
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
</li>
|
</li>
|
||||||
|
<li>m6 bits 7..6 : Possibility of a bridge above, in the <a href="#bridge_direction">direction specified</a></li>
|
||||||
|
<li>m6 bits 1..0 : <a href="#tropic_zone">Tropic zone definition</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
Loading…
Reference in New Issue