Valhalla Legends Forums Archive | Battle.net Bot Development | [C++] User access flags (bitmasking?)

AuthorMessageTime
warz
I haven't done a moderation bot in forever. Infact, I don't think I've made one in C++. Anywho, I remember reading on certain forums about access flags, and turning them into hex values, or something. Apparantly it makes it easier to deal with?

Anyone know about this? Or can explain how this works..
March 18, 2006, 7:31 PM
UserLoser
https://davnit.net/bnet/vL/index.php?topic=7623.msg69281#msg69281
March 18, 2006, 8:09 PM
warz
Alright, I'm pretty sure I understand this. How would you go, though, from the bitfield back to the A-Z equiv?
March 18, 2006, 9:05 PM
LoRd
[code]if ((mask & FLAG_S) == FLAG_S)
{
    // S flag
}

if ((mask & FLAG_B) == FLAG_B)
{
    // B flag
}

...[/code]
March 19, 2006, 12:26 AM

Search