diff options
Diffstat (limited to 'src/Mobs/Behaviors/Behavior.h')
-rw-r--r-- | src/Mobs/Behaviors/Behavior.h | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/src/Mobs/Behaviors/Behavior.h b/src/Mobs/Behaviors/Behavior.h index 81499eade..989addf8d 100644 --- a/src/Mobs/Behaviors/Behavior.h +++ b/src/Mobs/Behaviors/Behavior.h @@ -1,15 +1,18 @@ #pragma once struct TakeDamageInfo; +class cChunk; +#include <chrono> + class cBehavior { public: - virtual bool IsControlDesired(); - virtual bool ControlStarting(); - virtual bool ControlEnding(); - virtual void Tick(); - virtual void PostTick(); - virtual void PreTick(); + virtual bool IsControlDesired(std::chrono::milliseconds a_Dt, cChunk & a_Chunk); + virtual bool ControlStarting(std::chrono::milliseconds a_Dt, cChunk & a_Chunk); + virtual bool ControlEnding(std::chrono::milliseconds a_Dt, cChunk & a_Chunk); + virtual void Tick(std::chrono::milliseconds a_Dt, cChunk & a_Chunk); + virtual void PostTick(std::chrono::milliseconds a_Dt, cChunk & a_Chunk); + virtual void PreTick(std::chrono::milliseconds a_Dt, cChunk & a_Chunk); virtual void onRightClicked(); |