_std/macros/flags.dm
HAS_FLAG | checks if a flags variable (x) has a specific bitflag |
---|---|
HAS_ANY_FLAGS | checks if a flags variable (x) has a specific bitflag |
HAS_ALL_FLAGS | checks if a flags variable (x) has all of flags in the flags variable |
ADD_FLAG | adds a flag to a flags variable (x). if the flag is already added, nothing happens |
REMOVE_FLAG | removes a flag from a flags variable (x). if the flag is not in the flags variable, nothing happens |
TOGGLE_FLAG | toggles a flag in a flags variable (x) |
Define Details
ADD_FLAG
adds a flag to a flags variable (x). if the flag is already added, nothing happens
HAS_ALL_FLAGS
checks if a flags variable (x) has all of flags in the flags
variable
HAS_ANY_FLAGS
checks if a flags variable (x) has a specific bitflag
HAS_FLAG
checks if a flags variable (x) has a specific bitflag
REMOVE_FLAG
removes a flag from a flags variable (x). if the flag is not in the flags variable, nothing happens
TOGGLE_FLAG
toggles a flag in a flags variable (x)