mirror of
https://gitea.sffempire.ru/Kolyah35/minecraft-pe-0.6.1.git
synced 2026-04-06 15:33:32 +00:00
the whole game
This commit is contained in:
53
src/world/level/pathfinder/Path.h
Executable file
53
src/world/level/pathfinder/Path.h
Executable file
@@ -0,0 +1,53 @@
|
||||
#ifndef NET_MINECRAFT_WORLD_LEVEL_PATHFINDER__Path_H__
|
||||
#define NET_MINECRAFT_WORLD_LEVEL_PATHFINDER__Path_H__
|
||||
|
||||
//package net.minecraft.world.level.pathfinder;
|
||||
|
||||
#include "Node.h"
|
||||
#include "../../phys/Vec3.h"
|
||||
#include "../../entity/Entity.h"
|
||||
|
||||
class Path
|
||||
{
|
||||
public:
|
||||
Path();
|
||||
~Path();
|
||||
|
||||
void copyNodes(Node** nodes, int length);
|
||||
|
||||
void destroy();
|
||||
|
||||
void next();
|
||||
|
||||
void setSize(int size);
|
||||
int getSize() const;
|
||||
|
||||
bool isEmpty() const;
|
||||
bool isDone() const;
|
||||
|
||||
Node* last() const;
|
||||
Node* get(int i) const;
|
||||
|
||||
int getIndex() const;
|
||||
void setIndex(int index);
|
||||
|
||||
Vec3 currentPos(Entity* e) const;
|
||||
Node* currentPos();
|
||||
|
||||
Vec3 getPos(Entity* e, int index) const;
|
||||
|
||||
bool sameAs(const Path* path) const;
|
||||
|
||||
bool endsIn(const Vec3& pos) const;
|
||||
bool endsInXZ(const Vec3& pos) const;
|
||||
|
||||
int id;
|
||||
private:
|
||||
Node** nodes;
|
||||
int length;
|
||||
int index;
|
||||
|
||||
static int p;
|
||||
};
|
||||
|
||||
#endif /*NET_MINECRAFT_WORLD_LEVEL_PATHFINDER__Path_H__*/
|
||||
Reference in New Issue
Block a user