docs/landscape.html
changeset 2008 c9d6585c96c8
parent 1993 7410864cfac8
child 2017 16c2d8b875d1
equal deleted inserted replaced
2007:b3bdf698ee26 2008:c9d6585c96c8
    91 </table></li>
    91 </table></li>
    92 </ul></li>
    92 </ul></li>
    93 <li>map2 bits 7..4: bit clear = signal shows red; same bits as in map3_lo</li>
    93 <li>map2 bits 7..4: bit clear = signal shows red; same bits as in map3_lo</li>
    94 <li>OpenTTD bits in map3_hi:
    94 <li>OpenTTD bits in map3_hi:
    95 <table>
    95 <table>
    96 <tr><td nowrap valign=top>bits 1..0: </td><td align=left>type of signal:</td></tr>
    96 <tr><td nowrap valign=top>bits 2..0: </td><td align=left>type of signal:</td></tr>
    97 <tr><td nowrap valign=top><tt>00</tt>: </td><td align=left>normal signals</td></tr>
    97 <tr><td nowrap valign=top><tt>000</tt>: </td><td align=left>normal signals</td></tr>
    98 <tr><td nowrap valign=top><tt>01</tt>: </td><td align=left>pre-signals</td></tr>
    98 <tr><td nowrap valign=top><tt>001</tt>: </td><td align=left>pre-signals</td></tr>
    99 <tr><td nowrap valign=top><tt>10</tt>: </td><td align=left>exit-signals</td></tr>
    99 <tr><td nowrap valign=top><tt>010</tt>: </td><td align=left>exit-signals</td></tr>
   100 <tr><td nowrap valign=top><tt>11</tt>: </td><td align=left>combo-signals</td></tr>
   100 <tr><td nowrap valign=top><tt>011</tt>: </td><td align=left>combo-signals</td></tr>
       
   101 <tr><td nowrap valign=top><tt>100</tt>: </td><td align=left>PBS signals</td></tr>
   101 <tr><td nowrap valign=top>bit 3: </td><td align=left>set = semaphore signals, clear = light signals</td></tr>
   102 <tr><td nowrap valign=top>bit 3: </td><td align=left>set = semaphore signals, clear = light signals</td></tr>
   102 </table></li>
   103 </table></li>
   103 </ul></li>
   104 </ul></li>
   104 <li>map_owner: <a href="#OwnershipInfo">owner</a> of the track
   105 <li>map_owner: <a href="#OwnershipInfo">owner</a> of the track
   105 </li>
   106 </li>
   118 <tr><td nowrap valign=top><tt>A</tt>&nbsp; </td><td align=left>fence on the S side (track in the N corner)</td></tr>
   119 <tr><td nowrap valign=top><tt>A</tt>&nbsp; </td><td align=left>fence on the S side (track in the N corner)</td></tr>
   119 <tr><td nowrap valign=top><tt>B</tt>&nbsp; </td><td align=left>fence on the N side (track in the S corner)</td></tr>
   120 <tr><td nowrap valign=top><tt>B</tt>&nbsp; </td><td align=left>fence on the N side (track in the S corner)</td></tr>
   120 <tr><td nowrap valign=top><tt>C</tt>&nbsp; </td><td align=left>on snow or desert</td></tr>
   121 <tr><td nowrap valign=top><tt>C</tt>&nbsp; </td><td align=left>on snow or desert</td></tr>
   121 </table></li>
   122 </table></li>
   122 <li>map3_lo bits 0..3 = <a name="TrackType">track type</a>: <tt>0</tt> - conventional railway, <tt>1</tt> - monorail, <tt>2</tt> - maglev
   123 <li>map3_lo bits 0..3 = <a name="TrackType">track type</a>: <tt>0</tt> - conventional railway, <tt>1</tt> - monorail, <tt>2</tt> - maglev
   123 </li>
   124 <li>map3_lo bits 4..7 = Pbs reserved status:
       
   125 <table>
       
   126 <tr><td nowrap valign=top><tt>bits 4..6</tt>&nbsp; </td><td align=left>'Track'number of reserved track + 1, if this is zero it means nothing is reserved on this tile</td></tr>
       
   127 <tr><td nowrap valign=top><tt>bit 7</tt>&nbsp; </td><td align=left>If this is set, then the opposite track ('Track'number^1) is also reserved</td></tr>
       
   128 </table></li>
   124 </ul>
   129 </ul>
   125 map5 bits 7 and 6 set: railway depot / checkpoints
   130 map5 bits 7 and 6 set: railway depot / checkpoints
   126 <ul>
   131 <ul>
   127 <li>map5 value C0..C3: railway depot
   132 <li>map5 value C0..C3: railway depot
   128 <br>map5 bits 1..0 - direction: exit towards: <tt>00</tt> = NE, <tt>01</tt> = SE, <tt>02</tt> = SW, <tt>03</tt> = NW</li>
   133 <br>map5 bits 1..0 - direction: exit towards: <tt>00</tt> = NE, <tt>01</tt> = SE, <tt>02</tt> = SW, <tt>03</tt> = NW</li>
   131 <br>
   136 <br>
   132 <br>
   137 <br>
   133 <li>map_owner: <a href="#OwnershipInfo">owner</a> of the depot / checkpoint</li>
   138 <li>map_owner: <a href="#OwnershipInfo">owner</a> of the depot / checkpoint</li>
   134 <li>map3_lo bits 0..3 = <a href="#TrackType">track type</a></li>
   139 <li>map3_lo bits 0..3 = <a href="#TrackType">track type</a></li>
   135 <li>map3_lo bit 4 = use custom sprite (valid only for the checkpoint)</li>
   140 <li>map3_lo bit 4 = use custom sprite (valid only for the checkpoint)</li>
       
   141 <li>map3_lo bit 6 = track on this tile is reserved by pbs</li>
   136 <li>map3_hi = custom station id</li>
   142 <li>map3_hi = custom station id</li>
   137 </ul>
   143 </ul>
   138 </td></tr>
   144 </td></tr>
   139 
   145 
   140 <tr><td valign=top nowrap><a name="Class2"><tt> 2 </tt></a></td><td>
   146 <tr><td valign=top nowrap><a name="Class2"><tt> 2 </tt></a></td><td>
   155 </ul>
   161 </ul>
   156 map5 bit 4 set, bits 7..5 clear: level crossing
   162 map5 bit 4 set, bits 7..5 clear: level crossing
   157 <ul>
   163 <ul>
   158 <li>map5 bit 3: clear - road in the X direction, set - road in the Y direction (railway track always perpendicular)</li>
   164 <li>map5 bit 3: clear - road in the X direction, set - road in the Y direction (railway track always perpendicular)</li>
   159 <li>map5 bit 2: set if crossing lights are on</li>
   165 <li>map5 bit 2: set if crossing lights are on</li>
       
   166 <li>map5 bit 0: set if rail track is reserved by pbs</li>
   160 <li>map_owner: <a href="#OwnershipInfo">owner</a> of the railway track</li>
   167 <li>map_owner: <a href="#OwnershipInfo">owner</a> of the railway track</li>
   161 <li>map2: Index into the array of towns, 0 for non-town roads</li>
   168 <li>map2: Index into the array of towns, 0 for non-town roads</li>
   162 <li>map3_lo bits 0..7: <a href="#OwnershipInfo">owner</a> of the road</li>
   169 <li>map3_lo bits 0..7: <a href="#OwnershipInfo">owner</a> of the road</li>
   163 <li>map3_hi bits 3..0: <a href="#TrackType">track type</a></li>
   170 <li>map3_hi bits 3..0: <a href="#TrackType">track type</a></li>
   164 <li>map3_hi bits 4..6: <tt>0</tt> - on bare land, <tt>1</tt> - on grass, <tt>2</tt> or higher - paved</li>
   171 <li>map3_hi bits 4..6: <tt>0</tt> - on bare land, <tt>1</tt> - on grass, <tt>2</tt> or higher - paved</li>
   370 </li>
   377 </li>
   371 <li>map_owner: <a href="#OwnershipInfo">owner</a> of the station</li>
   378 <li>map_owner: <a href="#OwnershipInfo">owner</a> of the station</li>
   372 <li>map2: index into the <a href="#_StationArray">array of stations</a></li>
   379 <li>map2: index into the <a href="#_StationArray">array of stations</a></li>
   373 <li>map3_lo bits 0..3: <a href="#TrackType">track type</a> for railway stations, must be 0 for all the other stations</li>
   380 <li>map3_lo bits 0..3: <a href="#TrackType">track type</a> for railway stations, must be 0 for all the other stations</li>
   374 <li>map3_lo bit 4 = use custom sprite (valid only railway stations FOR NOW)</li>
   381 <li>map3_lo bit 4 = use custom sprite (valid only railway stations FOR NOW)</li>
       
   382 <li>map3lo bit 6 set = track is reserved by pbs (railway stations only)</li>
   375 <li>map3_hi = custom station id</li>
   383 <li>map3_hi = custom station id</li>
   376 </ul>
   384 </ul>
   377 </td></tr>
   385 </td></tr>
   378 
   386 
   379 <tr><td valign=top nowrap><a name="Class6"><tt> 6 </tt></a></td><td>
   387 <tr><td valign=top nowrap><a name="Class6"><tt> 6 </tt></a></td><td>
   540 <li>map5 bits 3..2: <tt>0</tt> - railway tunnel, <tt>1</tt> - road tunnel</li>
   548 <li>map5 bits 3..2: <tt>0</tt> - railway tunnel, <tt>1</tt> - road tunnel</li>
   541 <li>map5 bits 1..0 - direction: entrance towards: <tt>0</tt> = NE, <tt>1</tt> = SE, <tt>2</tt> = SW, <tt>3</tt> = NW</li>
   549 <li>map5 bits 1..0 - direction: entrance towards: <tt>0</tt> = NE, <tt>1</tt> = SE, <tt>2</tt> = SW, <tt>3</tt> = NW</li>
   542 <li>map_owner: <a href="#OwnershipInfo">owner</a> of the tunnel</li>
   550 <li>map_owner: <a href="#OwnershipInfo">owner</a> of the tunnel</li>
   543 <li>map3_lo bits 3..0 = <a href="#TrackType">track type</a> for railway tunnel, must be 0 for road tunnel</li>
   551 <li>map3_lo bits 3..0 = <a href="#TrackType">track type</a> for railway tunnel, must be 0 for road tunnel</li>
   544 <li>map3_hi bit 7 set = on snow or desert</li>
   552 <li>map3_hi bit 7 set = on snow or desert</li>
       
   553 <li>map3hi bit 0 set = track with 'Track'number 0 is reserved by pbs</li>
       
   554 <li>map3hi bit 1 set = track with 'Track'number 1 is reserved by pbs</li>
   545 </ul>
   555 </ul>
   546 map5 bit 7 set: bridge
   556 map5 bit 7 set: bridge
   547 <ul><li>
   557 <ul><li>
   548 map5 bit 6 clear: bridge ending
   558 map5 bit 6 clear: bridge ending
   549 <ul>
   559 <ul>