mirror of
https://gitea.murdle.top/murdle/mc-lce.git
synced 2026-03-10 19:19:01 +02:00
20 lines
341 B
C++
20 lines
341 B
C++
#pragma once
|
|
|
|
#include "Goal.h"
|
|
|
|
class MoveTowardsTargetGoal : public Goal
|
|
{
|
|
private:
|
|
PathfinderMob *mob;
|
|
weak_ptr<Mob> target;
|
|
double wantedX, wantedY, wantedZ;
|
|
float speed, within;
|
|
|
|
public:
|
|
MoveTowardsTargetGoal(PathfinderMob *mob, float speed, float within);
|
|
|
|
bool canUse();
|
|
bool canContinueToUse();
|
|
void stop();
|
|
void start();
|
|
}; |