bool Level::isWithinVision(Vec2 from, Vec2 to, VisionId v) const { return Vision::get(v)->isNightVision() || from.distD(to) <= darkViewRadius || getLight(to) > 0.3; }
bool Level::isWithinVision(Vec2 from, Vec2 to) const { return from.distD(to) <= darkViewRadius || getSquare(to)->getLight() > 0.3; }