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
示例#2
0
 def rooms(self, *args):
     from wallaby.common.sets import OrderedSet
     rooms = OrderedSet()
     rooms.add(self._roomName)
     return rooms