Пример #1
0
/**
 * \copydoc MapEntity::is_sensor_obstacle
 */
bool CustomEntity::is_sensor_obstacle(Sensor& sensor) {

    const TraversableInfo& info = get_can_traverse_entity_info(sensor.get_type());
    if (!info.is_empty()) {
        return !info.is_traversable(*this, sensor);
    }
    return Detector::is_sensor_obstacle(sensor);
}