first commit
This commit is contained in:
20
Minecraft.World/MoveTowardsTargetGoal.h
Normal file
20
Minecraft.World/MoveTowardsTargetGoal.h
Normal file
@@ -0,0 +1,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();
|
||||
};
|
||||
Reference in New Issue
Block a user