Files
MinecraftConsoles/Minecraft.World/Path.h
void_17 7074f35e4b shared_ptr -> std::shared_ptr
This is one of the first commits in a plan to remove all `using namespace std;` lines in the entire codebase as it is considered anti-pattern today.
2026-03-02 15:58:20 +07:00

32 lines
526 B
C++

#pragma once
class Path
{
friend class PathFinder;
private:
NodeArray nodes;
int index;
int length;
public:
Path(NodeArray nodes);
~Path();
void next();
bool isDone();
Node *last() ;
Node *get(int i);
int getSize();
void setSize(int length);
int getIndex();
void setIndex(int index);
Vec3 *getPos(std::shared_ptr<Entity> e, int index);
NodeArray Getarray();
Vec3 *currentPos(std::shared_ptr<Entity> e);
Vec3 *currentPos();
bool sameAs(Path *path);
bool endsIn(Vec3 *pos);
bool endsInXZ(Vec3 *pos);
};