CSCI3081W Drone Delivery System
|
this class inhertis from the PathStrategy class and is responsible for generating the breadth first search path that the drone will take. More...
#include <BfsStrategy.h>
Public Member Functions | |
BfsStrategy (Vector3 position, Vector3 destination, const routing::Graph *graph) | |
Construct a new Bfs Strategy object. More... | |
Public Member Functions inherited from PathStrategy | |
PathStrategy (std::vector< Vector3 > path={}) | |
Construct a new PathStrategy Strategy object. More... | |
virtual void | move (IEntity *entity, double dt) |
Move toward next position in the path. More... | |
virtual bool | isCompleted () |
Check if the trip is completed by seeing if index has reached the end of the path. More... | |
double | currentPathDistance (Vector3 startPosition) |
Get the total distance of the entire path starting from startPosition and the current index. More... | |
double | totalPathDistance (Vector3 startPosition) |
Get the total distance of the entire path starting from startPosition and index 0. More... | |
Public Member Functions inherited from IStrategy | |
virtual | ~IStrategy () |
Destructor. | |
Additional Inherited Members | |
Protected Attributes inherited from PathStrategy | |
std::vector< Vector3 > | path |
int | index |
this class inhertis from the PathStrategy class and is responsible for generating the breadth first search path that the drone will take.
BfsStrategy::BfsStrategy | ( | Vector3 | position, |
Vector3 | destination, | ||
const routing::Graph * | graph | ||
) |
Construct a new Bfs Strategy object.
position | Current position |
destination | End destination |
graph | Graph/Nodes of the map |