Beispiel #1
0
 def create_room(self, domains):
     '''
     Chooses a room with the given domains.
     '''
     rooms = []
     for domain in domains:
         rooms.extend(Blueprint.find_blueprints(type=domain, zone=self.zone, floor=self.floor))
     
     if len(rooms) != 0:
         return Room(random.choice(rooms).master())
Beispiel #2
0
def domain(**domains):
    '''
    Returns a list of all Blueprints with the given domains.
    '''
    return Blueprint.find_blueprints(**domains)