XBIT: Difference between revisions
From sc2k-reverse
Jump to navigationJump to search
starting page |
Bit name adjustment |
||
Line 9: | Line 9: | ||
| 0 | | 0 | ||
| +1 | | +1 | ||
|Salt Water (Will water on this tile be fresh or salt water) | | Salt Water (Will water on this tile be fresh or salt water) | ||
|- | |- | ||
| 1 | | 1 | ||
| +2 | | +2 | ||
| | | Flip the tile (from the perspective of the sprite it is horizontally mirrored) | ||
|- | |- | ||
| 2 | | 2 | ||
Line 21: | Line 21: | ||
| 3 | | 3 | ||
| +8 | | +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 | | 4 |
Latest revision as of 07:47, 29 August 2025
Every tile on the map has a 1 byte (FF) XBIT value for it, setting various flags about the tile.
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). |