add recharge
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user