(self, id, flags)
return self._data[id] & flags
Gets the value of a specific flag or flags.

        Given a tile ID and a flag, returns the value of the flag if
        it is set, or zero otherwise:
          if gff_obj.get_flags(0, BLUE):
              # The blue flag is set.

        You can bitwise-or (|) flag constants together to get more
        than one with a single call. The result is all of the set
        flags bitwise-or'd together:
          is_set = gff_obj.get_flags(0, RED | BLUE | PEACH)
          if is_set | BLUE:
              # The blue flag is set.

        Call with the ALL constant to get all flags in a single value.
          flags = gff_obj.get_flags(0, ALL)
Gets the value of a specific flag or flags.
Gets the value of a specific flag or flags .
def get_flags(self, id, flags):
        """Gets the value of a specific flag or flags.

        Given a tile ID and a flag, returns the value of the flag if
        it is set, or zero otherwise:
          if gff_obj.get_flags(0, BLUE):
              # The blue flag is set.

        You can bitwise-or (|) flag constants together to get more
        than one with a single call. The result is all of the set
        flags bitwise-or'd together:
          is_set = gff_obj.get_flags(0, RED | BLUE | PEACH)
          if is_set | BLUE:
              # The blue flag is set.

        Call with the ALL constant to get all flags in a single value.
          flags = gff_obj.get_flags(0, ALL)
        """
        assert 0 <= id <= 255
        return self._data[id] & flags
def get_flags ( self , id , flags ) : assert 0 <= id <= 255 return self . _data [ id ] & flags