CSCI3081W Drone Delivery System
|
this class inherits from the PathStrategy class and is responsible for generating the beeline that the drone will take. More...
#include <BeelineStrategy.h>
Public Member Functions | |
BeelineStrategy (Vector3 pos, Vector3 des) | |
Construct a new Beeline 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 inherits from the PathStrategy class and is responsible for generating the beeline that the drone will take.
Construct a new Beeline Strategy object.
position | Starting position |
destination | End destination |