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.h | |
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.h')
-rw-r--r-- | src/Mobs/Behaviors/BehaviorDoNothing.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/src/Mobs/Behaviors/BehaviorDoNothing.h b/src/Mobs/Behaviors/BehaviorDoNothing.h new file mode 100644 index 000000000..52c0c7c08 --- /dev/null +++ b/src/Mobs/Behaviors/BehaviorDoNothing.h @@ -0,0 +1,19 @@ +#pragma once + +// Always takes control of the tick and does nothing. Used for unimplemented mobs like squids. + +class cBehaviorDoNothing; + +#include "Behavior.h" + +class cBehaviorDoNothing : public cBehavior +{ +public: + void AttachToMonster(cMonster & a_Parent); + bool IsControlDesired(std::chrono::milliseconds a_Dt, cChunk & a_Chunk); + void Tick(std::chrono::milliseconds a_Dt, cChunk & a_Chunk); + +private: + /** Our parent */ + cMonster * m_Parent; +}; |