### 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
- P - 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 | OOO1 OOOO | OOOO OOOO OOOO OOOO | XXX XOOOO | XXX XXXOO | XXX XXX XX | OOOX XXOO | OOOO OOOO | OOOO OOOO OOOO OOOO
farmland | XXXX XXXX XXXX XXXX | XXX XXXXX
1 | rail | XOOX XXXX | OOOO XXXX OOOO OOOO | OOOO OOOO | OOOO XXXX | OO XXXXXX | OOOO OOOO | OOOO OOOO | OOOO PPPP PPXX XXXX
rail with signals | OOOP XXXX XXXX XXXX | XXXX OOOO | XXXX XXXX | O1 XXXXXX | PPPP PPPP | PP PPPPPP
depot | XXXX XXXX XXXX XXXX | OOOO OOOO | OOOO XXXX | 11OX OOXX | OOOO OOOO | OOOO OOOO | OOOO OOOO OOXX XXXX
2 | road | OOOX XXXX | XXXX XXXX XXXX XXXX | XXXX XXXX | OOXX XXXX | OO XX XXXX | OO XXXOOO | OOX OXXXX | OPPP XXXX XXOO OOOO
level crossing | OOOX XXXX | XXXX OOOO | O1 X XOOPX | OO XXXOOO | OOX XXXXX | OPPP XXXX XX XXXXXX
road depot | OOOX XXXX | XXXX XXXX XXXX XXXX | XXXX OOOO | 1OOO OOXX | OOOO OOOO | OOX XXXXX | OPPP XXXX XXOO OOOO
3 | finished house | XXXX XXXX | XXXX XXXX XXXX XXXX | 1 XOXXXXX | XXXX XXXX | XXXX XXXX | XXXX XXOO | XXXX XXXX | OOOO OOOO OOOO OOOO
house under construction | O XOXXXXX | OOOXX XXX
4 | trees | OXX1 OOOO | OOOO OOOXXX XX OOOO | XXXX XXXX | OOOO OOOO | XXOO OXXX | OOOO OOOO | OOOO OOOO | OOOO OOOO OOOO OOOO
5 | rail station | OXX XXXXX | XXXX XXXX XXXX XXXX | XXXX OOOO | XXXX XXXX | XXXX XXXX | X PXXX XPX | XXXX XXXX | OOOO OOOO OOXX XXXX
rail waypoint | OOOO OOOX
road stop | XXXX OOPP | OOXX XXXX | OOOO OXXX | OPXXX OOO | OOOX XXXX | OPPP XXXX XX XXXXXX
road waypoint | XXXX PP PP | P PPP XXXX XX XXXXXX
airport | XXXX OOOO | OOOO OOOO | XXXX XXXX | XXXX XXXX | OOOO OOOO OOOO OOOO
dock | OOOO OOOO | OOOO OOOO | OOOO OXXX | 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 OOOP | OOOO OOOO | OOOO OOOX | 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 OOX X
8 | finished industry | 1 XXO OOOO | XXXX XXXX XXXX XXXX | XXXX XXXX | XXXX XXXX | XXXX XXXX | OOXXX XOO | XXXX XXXX | OOOO OOOO OOOO OOOO
industry under construction | O XXO XXXX
9 | tunnel entrance | OOO XXXXX | PPPP PPPP PPPP PPPP | XXXX OOOO P P PPPPPP | OOXX XXXX | OPPX XX XX | PPOO OOPP | PPPX XXXX | PPPP XXXX XXXX XXXX
bridge ramp - rail | PPPP PPPP PPPP PPPP | OOPP PPPP | 1PPO 00 XX | PPXX XXPP | PPPP PPPP PPXX XXXX
bridge ramp - road | OOOO OOOO PPPP PPPP | OOXX XXXX | 1OOO 01 XX | OOXX XXOO | OPPP XXXX XXOO OOOO
bridge ramp - water | XOO XXXXX | OOOO OOOO OOOO OOOO | OOOO OOOO | 1OOO 10 XX | OOOO OOOO OOOO OOOO
A | objects | OXX XXXXX | XXXX XXXX XXXX XXXX | XXXX XXXX | PPP P PP PP | XXXX XXXX | OOOO OOPP | 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)