XBIT

From sc2k-reverse
Revision as of 07:47, 29 August 2025 by AF (talk | contribs) (Bit name adjustment)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

Every tile on the map has a 1 byte (FF) XBIT value for it, setting various flags about the tile.

Flag Information for Each Bit Position
Bit Position Decimal Flag Meaning
0 +1 Salt Water (Will water on this tile be fresh or salt water)
1 +2 Flip the tile (from the perspective of the sprite it is horizontally mirrored)
2 +4 Surface Water (Is this tile covered in water)
3 +8 Mark bit (When this bit is set, it seems to be involved in quite a few calculations, some could well be to do with land value)
4 +16 Watered (Is this tile receiving water).
5 +32 Piped (Can this tile receive water).
6 +64 Powered (Is this tile receiving power).
7 +128 Powerable (Can this tile receive or need power).