summaryrefslogtreecommitdiffstats
path: root/src/Mobs/Behaviors/BehaviorWanderer.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/Mobs/Behaviors/BehaviorWanderer.h')
-rw-r--r--src/Mobs/Behaviors/BehaviorWanderer.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/Mobs/Behaviors/BehaviorWanderer.h b/src/Mobs/Behaviors/BehaviorWanderer.h
index 258bf5f59..90dddcebc 100644
--- a/src/Mobs/Behaviors/BehaviorWanderer.h
+++ b/src/Mobs/Behaviors/BehaviorWanderer.h
@@ -2,19 +2,22 @@
// The mob will wander around
#include <chrono>
+#include "Behavior.h"
class cMonster;
class cEntity;
class cChunk;
-class cBehaviorWanderer
+class cBehaviorWanderer : cBehavior
{
public:
- cBehaviorWanderer(cMonster * a_Parent);
+ cBehaviorWanderer();
+ void AttachToMonster(cMonster & a_Parent) override;
// Functions our host Monster should invoke:
- bool ActiveTick(std::chrono::milliseconds a_Dt, cChunk & a_Chunk);
+ bool IsControlDesired(std::chrono::milliseconds a_Dt, cChunk & a_Chunk) override;
+ void Tick(std::chrono::milliseconds a_Dt, cChunk & a_Chunk) override;
private: