13 void add(
int x,
int y);
20 int getX(
int index)
const;
21 int getY(
int index)
const;
27 bool empty()
const {
return cells_.empty(); }
36 const std::vector<Cell> &
cells()
const {
return cells_; }
39 std::vector<Cell> cells_;
40 float totalCost_ = 0.f;
std::vector< float > cost
Ordered tile-index waypoints from start to goal (inclusive).
void clear()
Clears all waypoints and cost.
void setTotalCost(float cost)
float getTotalCost() const
Total path cost (A* heuristic + movement cost).
void reverse()
Reverses the waypoint order.
const std::vector< Cell > & cells() const
Raw waypoint vector.
void add(int x, int y)
Appends a waypoint tile.
bool empty() const
True when there are no waypoints.
int getY(int index) const
int getLength() const
Number of waypoints (0 = empty/unreachable).
int getX(int index) const
Waypoint tile coordinates.
放置世界:格子占用(多通道)+ 地形语义 + 已放置建筑实例。 行为由 PlacementSystem 提供;本类暴露便于脚本绑定的薄封装方法。 坐标换算统一走 eve::grid(支持 rectang...