21 lines
431 B
C++
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;
|
|
};
|