mirror of
https://github.com/smartcmd/MinecraftConsoles.git
synced 2026-03-26 08:08:12 +05:00
21 lines
375 B
C++
21 lines
375 B
C++
#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();
|
|
}; |