#NEWLINE# def get_flags( self , id , flags ) : #NEWLINE# #INDENT# "Gets the value of a specific flag or flags.\n\n        Given a tile ID and a flag, returns the value of the flag if\n        it is set, or zero otherwise:\n          if gff_obj.get_flags(0, BLUE):\n              # The blue flag is set.\n\n        You can bitwise-or (|) flag constants together to get more\n        than one with a single call. The result is all of the set\n        flags bitwise-or'd together:\n          is_set = gff_obj.get_flags(0, RED | BLUE | PEACH)\n          if is_set | BLUE:\n              # The blue flag is set.\n\n        Call with the ALL constant to get all flags in a single value.\n          flags = gff_obj.get_flags(0, ALL)\n        " #NEWLINE# assert ( 0 <= id <= 255 ) #NEWLINE# return ( self . _data [ self ] & flags )