def overlayLabel(self): rooms = OrderedSet() rooms[self.room] = True if self.pillow != None: rooms |= House.pillowRooms(self.room, self.pillow, self.feathers) if len(rooms) == 0: rooms.add(None) label = [] label.append(rooms) if self.pillow != None: label.append(self.pillow) return label
def rooms(self, *args): from wallaby.common.sets import OrderedSet rooms = OrderedSet() rooms.add(self._roomName) return rooms