def get_wall_tile(self, level, location):

        directions = []
        loc_x, loc_y = location
        wall_tiles = []
        wall_tiles.append(self.configuration.wall)
        wall_tiles.extend(self.tiles.values())

        pillar = self.check_pillar(level, location)
        if pillar:
            return pillar

        if wall_tile(level, (loc_x, loc_y - 1)) in self.configuration.tiles:
            if not (is_wall(level, (loc_x - 1, loc_y - 1), wall_tiles)
                    and is_wall(level, (loc_x + 1, loc_y - 1), wall_tiles)
                    and is_wall(level, (loc_x - 1, loc_y), wall_tiles)
                    and is_wall(level, (loc_x + 1, loc_y), wall_tiles)):
                directions.append('1')
        if wall_tile(level, (loc_x + 1, loc_y)) in self.configuration.tiles:
            if not (is_wall(level, (loc_x + 1, loc_y - 1), wall_tiles)
                    and is_wall(level, (loc_x + 1, loc_y + 1), wall_tiles)
                    and is_wall(level, (loc_x, loc_y - 1), wall_tiles)
                    and is_wall(level, (loc_x, loc_y + 1), wall_tiles)):
                directions.append('3')
        if wall_tile(level, (loc_x, loc_y + 1)) in self.configuration.tiles:
            if not (is_wall(level, (loc_x - 1, loc_y + 1), wall_tiles)
                    and is_wall(level, (loc_x + 1, loc_y + 1), wall_tiles)
                    and is_wall(level, (loc_x - 1, loc_y), wall_tiles)
                    and is_wall(level, (loc_x + 1, loc_y), wall_tiles)):
                directions.append('5')
        if wall_tile(level, (loc_x - 1, loc_y)) in self.configuration.tiles:
            if not (is_wall(level, (loc_x - 1, loc_y - 1), wall_tiles)
                    and is_wall(level, (loc_x - 1, loc_y + 1), wall_tiles)
                    and is_wall(level, (loc_x, loc_y - 1), wall_tiles)
                    and is_wall(level, (loc_x, loc_y + 1), wall_tiles)):
                directions.append('7')

        key = ''.join(directions)

        if key in self.tiles:
            return self.tiles[''.join(directions)]
        else:
            return self.configuration.four_way
Describes attribute of the volume.
dataset/ETHPy150Open tuturto/pyherc/src/pyherc/generators/level/decorator/basic.py/DirectionalWallDecorator.get_wall_tile--crossover with--dataset/ETHPy150Open darcyliu/storyboard/boto/ec2/connection.py/EC2Connection.get_volume_attribute