diff options
author | LogicParrot <LogicParrot@users.noreply.github.com> | 2017-08-24 09:25:50 +0200 |
---|---|---|
committer | LogicParrot <LogicParrot@users.noreply.github.com> | 2017-08-24 09:25:50 +0200 |
commit | 4e5baf3f39c6972fb525b0d4aed58f59de3005bd (patch) | |
tree | 4bdf3c28f92ea2fdd469f0ec9c404df96fd6b78f /src/Mobs/Behaviors/BehaviorChaser.cpp | |
parent | Initial Monster Behavior vector logic (diff) | |
download | cuberite-4e5baf3f39c6972fb525b0d4aed58f59de3005bd.tar cuberite-4e5baf3f39c6972fb525b0d4aed58f59de3005bd.tar.gz cuberite-4e5baf3f39c6972fb525b0d4aed58f59de3005bd.tar.bz2 cuberite-4e5baf3f39c6972fb525b0d4aed58f59de3005bd.tar.lz cuberite-4e5baf3f39c6972fb525b0d4aed58f59de3005bd.tar.xz cuberite-4e5baf3f39c6972fb525b0d4aed58f59de3005bd.tar.zst cuberite-4e5baf3f39c6972fb525b0d4aed58f59de3005bd.zip |
Diffstat (limited to 'src/Mobs/Behaviors/BehaviorChaser.cpp')
-rw-r--r-- | src/Mobs/Behaviors/BehaviorChaser.cpp | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/Mobs/Behaviors/BehaviorChaser.cpp b/src/Mobs/Behaviors/BehaviorChaser.cpp index c486c049a..025c60dd0 100644 --- a/src/Mobs/Behaviors/BehaviorChaser.cpp +++ b/src/Mobs/Behaviors/BehaviorChaser.cpp @@ -23,8 +23,10 @@ cBehaviorChaser::cBehaviorChaser(cMonster * a_Parent) : -bool cBehaviorChaser::IsControlDesired() +bool cBehaviorChaser::IsControlDesired(std::chrono::milliseconds a_Dt, cChunk & a_Chunk) { + UNUSED(a_Dt); + UNUSED(a_Chunk); // If we have a target, we have something to do! Return true and control the mob Ticks. // Otherwise return false. return (GetTarget() != nullptr); @@ -34,8 +36,10 @@ bool cBehaviorChaser::IsControlDesired() -void cBehaviorChaser::Tick() +void cBehaviorChaser::Tick(std::chrono::milliseconds a_Dt, cChunk & a_Chunk) { + UNUSED(a_Dt); + UNUSED(a_Chunk); /* * if ((GetTarget() != nullptr)) { @@ -83,7 +87,7 @@ void cBehaviorChaser::ApproachTarget() -void cBehaviorChaser::PostTick() +void cBehaviorChaser::PostTick(std::chrono::milliseconds a_Dt, cChunk & a_Chunk) { if (m_TicksSinceLastDamaged < 100) { |