Initial commit

This commit is contained in:
daoge_cmd
2026-03-01 12:16:08 +08:00
parent def8cb4153
commit b691c43c44
19437 changed files with 4363922 additions and 0 deletions

31
Minecraft.World/Path.h Normal file
View File

@@ -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<Entity> e, int index);
NodeArray Getarray();
Vec3 *currentPos(shared_ptr<Entity> e);
Vec3 *currentPos();
bool sameAs(Path *path);
bool endsIn(Vec3 *pos);
bool endsInXZ(Vec3 *pos);
};