mirror of
https://github.com/4jcraft/4jcraft.git
synced 2026-05-21 01:12:55 +00:00
19 lines
373 B
C++
19 lines
373 B
C++
#pragma once
|
|
|
|
#include "Goal.h"
|
|
|
|
class MoveTowardsTargetGoal : public Goal {
|
|
private:
|
|
PathfinderMob* mob;
|
|
std::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();
|
|
}; |