add recharge

This commit is contained in:
2026-11-10 19:54:00 +01:00
parent ea0eedc0fb
commit 772d4494e8
30 changed files with 1357 additions and 1073 deletions
+4 -2
View File
@@ -106,7 +106,9 @@ public:
QString getQueuedActionSummary() const;
// Attack cooldown / flash
float attackFlashTimer;
float attackFlashTimer; // Flash effect timer (visual feedback after attack or taking damage)
float rechargeTimer; // Recharge/cooldown timer (time remaining until unit can attack again)
bool isRecharging() const; // Returns true if unit is currently on cooldown
// Building State
float buildProgress; // 0.0 to 1.0
@@ -133,4 +135,4 @@ public:
static float getTerrainHeight(float worldX, float worldY, Matrix2D<TerrainPoint> *mapPoints, int numPoints05);
};
#endif // UNIT_H
#endif // UNIT_H