Bitfield: Difference between revisions
Jump to navigation
Jump to search
Hendricks266 (talk | contribs) Created page with 'A '''bitfield''' is an integer value treated as a sequence of bits (binary digits) which can be toggled individually as flags. In conventional decimal math, each flag is represe...' |
Hendricks266 (talk | contribs) No edit summary |
||
Line 15: | Line 15: | ||
*[[extbits]] | *[[extbits]] | ||
*[[LOGO_FLAGS]] | *[[LOGO_FLAGS]] | ||
See the [[:Category:Bitfields|complete list of bitfields]]. |
Revision as of 18:38, 26 July 2010
A bitfield is an integer value treated as a sequence of bits (binary digits) which can be toggled individually as flags. In conventional decimal math, each flag is represented a a power of two number: 1, 2, 4, 8, 16, 32, etc. To toggle each flag, you add them together. The resulting sum is what appears in a variable or structure member.
Notable bitfields include:
- cstat
- cstat (wall)
- ceilingstat
- floorstat
- PROJ_WORKSLIKE
- WEAPONx_FLAGS
- spriteflags
- htflags
- mdflags
- orientation
- bits
- extbits
- LOGO_FLAGS
See the complete list of bitfields.