diff options
author | Tycho <work.tycho+git@gmail.com> | 2015-01-16 15:38:21 +0100 |
---|---|---|
committer | Tycho <work.tycho+git@gmail.com> | 2015-01-16 15:38:21 +0100 |
commit | bfe1960191e902013b5ac75e8a3a487496d63bb9 (patch) | |
tree | 85a8f57b7bcc1dcd17c9f315e0b957d91c6fef86 /src/Mobs/Monster.h | |
parent | Converted cPickupEntity to std::chrono (diff) | |
download | cuberite-bfe1960191e902013b5ac75e8a3a487496d63bb9.tar cuberite-bfe1960191e902013b5ac75e8a3a487496d63bb9.tar.gz cuberite-bfe1960191e902013b5ac75e8a3a487496d63bb9.tar.bz2 cuberite-bfe1960191e902013b5ac75e8a3a487496d63bb9.tar.lz cuberite-bfe1960191e902013b5ac75e8a3a487496d63bb9.tar.xz cuberite-bfe1960191e902013b5ac75e8a3a487496d63bb9.tar.zst cuberite-bfe1960191e902013b5ac75e8a3a487496d63bb9.zip |
Diffstat (limited to 'src/Mobs/Monster.h')
-rw-r--r-- | src/Mobs/Monster.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/Mobs/Monster.h b/src/Mobs/Monster.h index 5752a2040..21ed0c25a 100644 --- a/src/Mobs/Monster.h +++ b/src/Mobs/Monster.h @@ -80,9 +80,9 @@ public: virtual void EventLosePlayer(void); virtual void CheckEventLostPlayer(void); - virtual void InStateIdle (float a_Dt); - virtual void InStateChasing (float a_Dt); - virtual void InStateEscaping(float a_Dt); + virtual void InStateIdle (std::chrono::milliseconds a_Dt); + virtual void InStateChasing (std::chrono::milliseconds a_Dt); + virtual void InStateEscaping(std::chrono::milliseconds a_Dt); int GetAttackRate() { return static_cast<int>(m_AttackRate); } void SetAttackRate(float a_AttackRate) { m_AttackRate = a_AttackRate; } @@ -217,8 +217,8 @@ protected: /* =========================== */ - float m_IdleInterval; - float m_DestroyTimer; + std::chrono::milliseconds m_IdleInterval; + std::chrono::milliseconds m_DestroyTimer; eMonsterType m_MobType; AString m_CustomName; |