This subclass of the DtGroundMoveToControllerComponent will give up on the movement task after a certain amount of simulation time
Header file:
#pragma once
{
public:
protected:
private:
orig);
protected:
};
Implementation:
parentRegistry)
{
}
{
}
{
}
{
" - Setting time to give up for move-to task to " <<
myTimeToGiveUp <<
std::endl;
}
{
{
" - Giving up move to task at time " << currentSimTime << std::endl;
return true;
}
else
{
return false;
}
}
{
" - Gave up on move to task. Calling taskComplete()." << std::endl;
}