Returns true if modifier is active in mask.
modifier
mask
static bool has(int mask, int modifier) => (mask & modifier) != 0;