mirror of
https://github.com/4jcraft/4jcraft.git
synced 2026-05-17 17:52: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();
|
|
}; |