/** * \brief Returns whether this entity is an obstacle for another one. * \param other Another entity. * \return \c true if this entity is an obstacle for the other one. */ bool Destructible::is_obstacle_for(MapEntity& other) { return get_modified_ground() == Ground::WALL && !is_being_cut && other.is_destructible_obstacle(*this); }
/** * @brief Returns whether this entity is an obstacle for another one. * * For a destructible item, this does not depend on the other * entity but only on the subtype of destructible item. * * @param other another entity * @return true if this entity is an obstacle for others */ bool Destructible::is_obstacle_for(MapEntity &other) { return features[subtype].can_be_lifted && !is_being_cut && other.is_destructible_obstacle(*this); }