diff options
author | LogicParrot <LogicParrot@users.noreply.github.com> | 2017-08-24 22:21:25 +0200 |
---|---|---|
committer | LogicParrot <LogicParrot@users.noreply.github.com> | 2017-08-24 22:21:25 +0200 |
commit | 810230b5466f1363d69763670fc9b85fa385c99a (patch) | |
tree | a9d4dcfd43ac28ef2fb9e61e73a34f7246a695bb /src/Mobs/Behaviors/BehaviorChaser.h | |
parent | Merge branch 'master' into mobs2 (diff) | |
download | cuberite-810230b5466f1363d69763670fc9b85fa385c99a.tar cuberite-810230b5466f1363d69763670fc9b85fa385c99a.tar.gz cuberite-810230b5466f1363d69763670fc9b85fa385c99a.tar.bz2 cuberite-810230b5466f1363d69763670fc9b85fa385c99a.tar.lz cuberite-810230b5466f1363d69763670fc9b85fa385c99a.tar.xz cuberite-810230b5466f1363d69763670fc9b85fa385c99a.tar.zst cuberite-810230b5466f1363d69763670fc9b85fa385c99a.zip |
Diffstat (limited to 'src/Mobs/Behaviors/BehaviorChaser.h')
-rw-r--r-- | src/Mobs/Behaviors/BehaviorChaser.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/Mobs/Behaviors/BehaviorChaser.h b/src/Mobs/Behaviors/BehaviorChaser.h index a40be6aba..1c64c7b07 100644 --- a/src/Mobs/Behaviors/BehaviorChaser.h +++ b/src/Mobs/Behaviors/BehaviorChaser.h @@ -18,7 +18,7 @@ class cBehaviorChaser : public cBehavior public: cBehaviorChaser(); - void AttachToMonster(cMonster & a_Parent) override; + void AttachToMonster(cMonster & a_Parent, cBehaviorStriker & a_ParentStriker); // Functions our host Monster should invoke: bool IsControlDesired(std::chrono::milliseconds a_Dt, cChunk & a_Chunk) override; @@ -44,6 +44,7 @@ private: /** Our parent */ cMonster * m_Parent; + cBehaviorStriker * m_ParentStriker; // The mob we want to attack cPawn * m_Target; |