aboutsummaryrefslogtreecommitdiff
path: root/Minecraft.World/MoveTowardsTargetGoal.h
blob: 5186b752ef9123e669f6c38070b8e32801b0db27 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#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();
};