From b691c43c44ff180d10e7d4a9afc83b98551ff586 Mon Sep 17 00:00:00 2001 From: daoge_cmd <3523206925@qq.com> Date: Sun, 1 Mar 2026 12:16:08 +0800 Subject: Initial commit --- Minecraft.World/Path.h | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 Minecraft.World/Path.h (limited to 'Minecraft.World/Path.h') diff --git a/Minecraft.World/Path.h b/Minecraft.World/Path.h new file mode 100644 index 00000000..01f56e72 --- /dev/null +++ b/Minecraft.World/Path.h @@ -0,0 +1,31 @@ +#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(shared_ptr e, int index); + NodeArray Getarray(); + Vec3 *currentPos(shared_ptr e); + Vec3 *currentPos(); + bool sameAs(Path *path); + bool endsIn(Vec3 *pos); + bool endsInXZ(Vec3 *pos); +}; -- cgit v1.2.3