the game where you go into mines and start crafting! but for consoles (forked directly from smartcmd's github)
at main 31 lines 517 B view raw
1#pragma once 2 3class Path 4{ 5 friend class PathFinder; 6 7private: 8 NodeArray nodes; 9 int index; 10 int length; 11 12public: 13 Path(NodeArray nodes); 14 ~Path(); 15 16 void next(); 17 bool isDone(); 18 Node *last() ; 19 Node *get(int i); 20 int getSize(); 21 void setSize(int length); 22 int getIndex(); 23 void setIndex(int index); 24 Vec3 *getPos(shared_ptr<Entity> e, int index); 25 NodeArray Getarray(); 26 Vec3 *currentPos(shared_ptr<Entity> e); 27 Vec3 *currentPos(); 28 bool sameAs(Path *path); 29 bool endsIn(Vec3 *pos); 30 bool endsInXZ(Vec3 *pos); 31};