CSCI3081W Drone Delivery System
|
Strategy interface. More...
#include <IStrategy.h>
Public Member Functions | |
virtual | ~IStrategy () |
Destructor. | |
virtual void | move (IEntity *entity, double dt)=0 |
Move toward next position. More... | |
virtual bool | isCompleted ()=0 |
Check if the trip is completed. More... | |
virtual double | currentPathDistance (Vector3 startPosition) |
Get the current distance of the entire path starting from startPosition and the current index. More... | |
virtual double | totalPathDistance (Vector3 startPosition) |
Get the total distance of the entire path starting from startPosition and index 0. More... | |
Strategy interface.
|
inlinevirtual |
Get the current distance of the entire path starting from startPosition and the current index.
Reimplemented in PathStrategy, and ICelebrationDecorator.
|
pure virtual |
Check if the trip is completed.
Implemented in PathStrategy, and ICelebrationDecorator.
|
pure virtual |
Move toward next position.
entity | Entity to move |
dt | Delta Time |
Implemented in PathStrategy, and ICelebrationDecorator.
|
inlinevirtual |
Get the total distance of the entire path starting from startPosition and index 0.
Reimplemented in PathStrategy, and ICelebrationDecorator.