### Landscape

Nine 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.

- type - 8 bits in size, tile class (bits 4..7), bridge (bits 2..3) tropic zone (bits 0..1, only valid in tropic climate)
- height - 8 bits in size, stores tile height
- m1 - 8 bits in size, used to identify the owner of that tile (eg piece of rail, bridge, etc.)
- m2 - 16 bits in size, used to identify the index of the given tile (object) in the (object-)array
- m3 - 8 bits in size, is used for general storage
- m4 - 8 bits in size, is used for general storage
- m5 - 8 bits in size, is used for general storage
- m6 - 8 bits in size, is used for general storage
- m7 - 8 bits in size, is used for general storage
- m8 - 16 bits in size, is used for general storage

- O - bit is free
- X - bit is used, but could be freed if needed
- X - bit is used
- X - bit is used for an index on a pool
- X - bit is introduced by a patch
- X - bit of attribute is abused for different purposes, i.e. other bits define the actual meaning
- X - bit is accessed, but a rearrangement of the map array could free some of these bits (probably not done for bit alignment)

class | type (8) | height (8) | m1 (8) | m2 (16) | m3 (8) | m4 (8) | m5 (8) | m6 (8) | m7 (8) | m8 (16)
--- | --- | --- | --- | --- | --- | --- | --- | --- | --- | ---
bits | 7654 3210 | 7654 3210 | 7654 3210 | FEDC BA98 7654 3210 | 7654 3210 | 7654 3210 | 7654 3210 | 7654 3210 | 7654 3210 | FEDC BA98 7654 3210
0 | ground | XXXX XX XX | XXXX XXXX | OOO 1 OOOO | OOOO OOOO OOOO OOOO | XXX X OOOO | XXX XXX OO | XXX XXX XX | OOO X XX OO | OOOO OOOO | OOOO OOOO OOOO OOOO
farmland | XXXX XXXX XXXX XXXX | XXX XXXXX
1 | rail | X OO X XXXX | OOOO XXXX OOOO OOOO | OOOO OOOO | OOOO XXXX | OO XXXXXX | OOOO OOOO | OOOO OOOO | OOOO OOOO OO XX XXXX
rail with signals | OOOO XXXX XXXX XXXX | XXXX OOOO | XXXX XXXX | O1 XXXXXX
depot | XXXX XXXX XXXX XXXX | OOOO OOOO | OOOO XXXX | 11 O X OO XX
2 | road | OOO X XXXX | XXXX XXXX XXXX XXXX | XXXX XXXX | OO XX XXXX | OO XX XXXX | OO XXX OOO | OO X O XXXX | OOOO XXXX XXOO OOOO
level crossing | OOO X XXXX | XXXX OOOO | O1 X X OOO X | OO XXX OOO | OO X XXXXX | OOOO XXXX XX XXXXXX
road depot | OOO X XXXX | XXXX XXXX XXXX XXXX | XXXX OOOO | 1O OO OO XX | OOOO OOOO | OO X XXXXX | OOOO XXXX XX OO OOOO
3 | finished house | XXXX XXXX | XXXX XXXX XXXX XXXX | 1 X O XXX XX | XXXX XXXX | XXXX XXXX | XXXX XX OO | XXXX XXXX | OOOO OOOO OOOO OOOO
house under construction | O X O XXX XX | OOO XX XXX
4 | trees | O XX 1 OOOO | OOOO OOO XXX XX XXXX | XX XX XXXX | OOOO OOOO | XX OO O XXX | OOOO OOOO | OOOO OOOO | OOOO OOOO OOOO OOOO
5 | rail station | O XX XXXXX | XXXX XXXX XXXX XXXX | XXXX OOOO | XXXX XXXX | XXXX XXXX | X X XXX X O X | XXXX XXXX | OOOO OOOO OO XX XXXX
rail waypoint | OOOO OOO X
road stop | XXXX OOOO | OO XX XXXX | OOOO O XXX | OO XX X OOO | OOO X XXXX | OOOO XXXX XX XXXXXX
airport | XXXX OOOO | OOOO OOOO | XXXX XXXX | XXXX XXXX | OOOO OOOO OOOO OOOO
dock | OOOO OOOO | OOOO OOOO | OOOO O XXX | OOOO OOOO
buoy | OOOO OOOO | OOOO OOOO | OOOO OOOO | OOOO OOOO
oilrig | OOOO OOOO | OOOO OOOO | OOOO OOOO | OOOO OOOO
6 | sea, shore | X XX XXXXX | OOOO OOOO OOOO OOOO | OOOO OOOO | OOOO OOOO | OOOO OOO X | OOOO OOOO | OOOO OOOO | OOOO OOOO OOOO OOOO
canal, river | XXXX XXXX | OOOO OOOO
lock | OOOO OOOO | OOO1 XX XX
shipdepot | XXXX XXXX XXXX XXXX | OOOO OOOO | 1OOO OO X X
8 | finished industry | 1 XX O OOOO | XXXX XXXX XXXX XXXX | XXXX XXXX | XXXX XXXX | XXXX XXXX | OO XXX X OO | XXXX XXXX | OOOO OOOO OOOO OOOO
industry under construction | O XX O XXXX
9 | tunnel entrance | X OO XXXXX | OOOO OOOO OOOO OOOO | XXXX OOOO | OO XX XXXX | O OO X XX XX | OOOO OOOO | OO X X XXXX | OOOO XXXX XX XX XXXX
bridge ramp | 1 OO X XX XX | OO XX XX OO
A | objects | O XX XXXXX | XXXX XXXX XXXX XXXX | XXXX XXXX | OOOO OOOO | XXXX XXXX | OOOO OOOO | XXXX XXXX | OOOO OOOO OOOO OOOO
bits | 7654 3210 | 7654 3210 | 7654 3210 | FEDC BA98 7654 3210 | 7654 3210 | 7654 3210 | 7654 3210 | 7654 3210 | 7654 3210 | FEDC BA98 7654 3210
class | type (8) | height (8) | m1 (8) | m2 (16) | m3 (8) | m4 (8) | m5 (8) | m6 (8) | m7 (8) | m8 (16)