blob: bf45130122670baed47781bdb22c736a75f48a64 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
#pragma once
#include "Goal.h"
class MoveTowardsTargetGoal : public Goal
{
private:
PathfinderMob *mob;
weak_ptr<LivingEntity> target;
double wantedX, wantedY, wantedZ;
double speedModifier;
float within;
public:
MoveTowardsTargetGoal(PathfinderMob *mob, double speedModifier, float within);
bool canUse();
bool canContinueToUse();
void stop();
void start();
};
|