Beispiel #1
0
 def corridor(section, trap_generator=None):
     "carve corridors"
     for it in section_connections(section):
         room_connection = match_section_to_room(section, it)
         corridor = CorridorGenerator(room_connection,
                                      it.translate_to_section(),
                                      None,
                                      floor_tile)
         corridor.generate()
Beispiel #2
0
    def add_corridors(self, section):
        """
        Add corridors leading from room connection to section connections

        :param section: section to add corridors
        :type section: Section
        """
        for section_connection in section_connections(section):
            room_connection = match_section_to_room(section,
                                                    section_connection)
            corridor = CorridorGenerator(
                room_connection, section_connection.translate_to_section(),
                self.empty_tile, self.corridor_tile)
            corridor.generate()
Beispiel #3
0
    def add_corridors(self, section):
        """
        Add corridors leading from room connection to section connections

        :param section: section to add corridors
        :type section: Section
        """
        for section_connection in section_connections(section):
            room_connection = match_section_to_room(section,
                                                    section_connection)
            corridor = CorridorGenerator(
                room_connection,
                section_connection.translate_to_section(),
                self.empty_tile,
                self.corridor_tile)
            corridor.generate()