aboutsummaryrefslogtreecommitdiff
path: root/Minecraft.World/Path.h
blob: 01f56e72253586caacf0dcbe7dfa7e7b818adbef (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
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);
};