QcMobLegs::Routes Class
class QcMobLegs::RoutesWhere legs come from. More...
| Header: | #include <server/pathing/QcMobLegs.h> |
Public Functions
| virtual | ~Routes() |
| virtual std::optional<QcBlockPos> | nextLeg(QcBlockPos from, QcBlockPos to) const = 0 |
| virtual int | reach() const = 0 |
| virtual std::optional<QcBlockPos> | wayOutOfWater(QcBlockPos from) const = 0 |
Detailed Description
Member Function Documentation
[virtual constexpr noexcept default] Routes::~Routes()
Destroys the instance of Routes. This destructor is virtual.
[pure virtual] std::optional<QcBlockPos> Routes::nextLeg(QcBlockPos from, QcBlockPos to) const
Returns the next leg from from towards to; none when the routes bring it no closer.
[pure virtual] int Routes::reach() const
Returns the reach: goals within this many cells (along both axes) are walked to directly.
[pure virtual] std::optional<QcBlockPos> Routes::wayOutOfWater(QcBlockPos from) const
Returns a cell on land to swim to from from.