Something went wrong. Try again.
[READ-ONLY] Mirror of https://github.com/Schniz/robotikka. Lee Ve Tom Ve Ani Doin our Robottttt
Something went wrong. Try again.
1234567891011121314151617181920212223242526272829303132333435#include <queue>
#include "../Models/Waypoint.h"#include "../Models/Cell.h"#include "../Robot.h"#include "../Consts.h"#include "../Models/Location.h"//#include "../Utils/MathUtil.h"
using namespace std;using namespace Consts;using namespace Utils;
namespace Managers {
class WaypointsManager { public: // TODO: init radius WaypointsManager(Robot* robot, vector<Waypoint> waypoints, float radius = RADIUS_AROUND_POINT); virtual ~WaypointsManager();
Waypoint update(Location newRobotLoc);
protected: bool shouldMoveNext(Location newRobotLoc);
private: const double m_Radius; Robot* m_Robot; queue<Waypoint> m_WaypointsQueue; Waypoint* m_CurrWaypoint; };
}