diff options
author | LogicParrot <LogicParrot@users.noreply.github.com> | 2017-08-29 20:06:16 +0200 |
---|---|---|
committer | LogicParrot <LogicParrot@users.noreply.github.com> | 2017-08-29 20:06:16 +0200 |
commit | 186321d3c780e9b1937c9fb387993f7e5cd9b9b0 (patch) | |
tree | 75c8e37bc3d4aff7f66de84042648dd51efd444f /src/Mobs/Behaviors/BehaviorDoNothing.cpp | |
parent | Horse (diff) | |
download | cuberite-186321d3c780e9b1937c9fb387993f7e5cd9b9b0.tar cuberite-186321d3c780e9b1937c9fb387993f7e5cd9b9b0.tar.gz cuberite-186321d3c780e9b1937c9fb387993f7e5cd9b9b0.tar.bz2 cuberite-186321d3c780e9b1937c9fb387993f7e5cd9b9b0.tar.lz cuberite-186321d3c780e9b1937c9fb387993f7e5cd9b9b0.tar.xz cuberite-186321d3c780e9b1937c9fb387993f7e5cd9b9b0.tar.zst cuberite-186321d3c780e9b1937c9fb387993f7e5cd9b9b0.zip |
Diffstat (limited to 'src/Mobs/Behaviors/BehaviorDoNothing.cpp')
-rw-r--r-- | src/Mobs/Behaviors/BehaviorDoNothing.cpp | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/src/Mobs/Behaviors/BehaviorDoNothing.cpp b/src/Mobs/Behaviors/BehaviorDoNothing.cpp new file mode 100644 index 000000000..aeb4b815e --- /dev/null +++ b/src/Mobs/Behaviors/BehaviorDoNothing.cpp @@ -0,0 +1,24 @@ +#include "Globals.h" // NOTE: MSVC stupidness requires this to be the same across all modules + +#include "BehaviorDoNothing.h" +#include "../Monster.h" + +void cBehaviorDoNothing::AttachToMonster(cMonster & a_Parent) +{ + m_Parent = &a_Parent; + m_Parent->AttachTickBehavior(this); +} + +bool cBehaviorDoNothing::IsControlDesired(std::chrono::milliseconds a_Dt, cChunk & a_Chunk) +{ + UNUSED(a_Dt); + UNUSED(a_Chunk); + return true; +} + +void cBehaviorDoNothing::Tick(std::chrono::milliseconds a_Dt, cChunk & a_Chunk) +{ + UNUSED(a_Dt); + UNUSED(a_Chunk); + return; +} |