Checks if the integer has all specified flags bits set.
flags
bool hasAll(int flags) { return (this & flags) == flags; }