game2006/server/gameserver/movehelper.h
aozhiwei bd56f2c193 1
2022-12-06 10:54:27 +08:00

21 lines
431 B
C++

#pragma once
struct MovePathPoint;
class Creature;
class MoveHelper
{
public:
MoveHelper(Creature* owner);
bool GetMovePosition(glm::vec3& out_pos);
void CalcTargetPos(float distance);
void ClearPath();
void AddPaths(const a8::Vec3& start, std::vector<a8::Vec3>& paths);
size_t GetPathSize();
private:
std::vector<MovePathPoint*> paths_;
int path_index_ = 0;
Creature* owner_ = nullptr;
};