mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/4jcraft.git
synced 2026-06-14 20:21:54 +00:00
22 lines
437 B
C++
22 lines
437 B
C++
#pragma once
|
|
|
|
#include "Goal.h"
|
|
|
|
class Animal;
|
|
|
|
class FollowParentGoal : public Goal {
|
|
private:
|
|
Animal* animal; // Owner of this goal
|
|
std::weak_ptr<Animal> parent;
|
|
double speedModifier;
|
|
int timeToRecalcPath;
|
|
|
|
public:
|
|
FollowParentGoal(Animal* animal, double speedModifier);
|
|
|
|
virtual bool canUse();
|
|
virtual bool canContinueToUse();
|
|
virtual void start();
|
|
virtual void stop();
|
|
virtual void tick();
|
|
}; |