Inactive/Active ring status based on being in/out of combat.

This commit is contained in:
2023-11-19 13:40:01 -06:00
parent eeb24934a3
commit 5b28478596
9 changed files with 26 additions and 3 deletions
+3
View File
@@ -91,6 +91,7 @@ private:
std::shared_ptr<DamageNumber>damageNumberPtr;
void Initialize();
float iframe_time=0;
float lastCombatTime=0;
protected:
const float ATTACK_COOLDOWN="Warrior.Auto Attack.Cooldown"_F;
const float MAGIC_ATTACK_COOLDOWN="Wizard.Auto Attack.Cooldown"_F;
@@ -189,6 +190,8 @@ public:
Key GetLastReleasedMovementKey();
float GetSwordSwingTimer();
bool OnUpperLevel();
void ResetLastCombatTime();
bool IsOutOfCombat();
//Triggers when the player has moved.
void Moved();
virtual ~Player()=default;