derive threat cost dynamically

This commit is contained in:
2026-06-13 21:50:00 +02:00
parent 3716c2b734
commit 10c5ad678f
28 changed files with 498 additions and 79 deletions

View File

@@ -26,10 +26,14 @@ public:
void refreshFromLive(const ShipStats& stats, float currentHp);
void setThreatCost(double cost);
void setDebugDrawEnabled(bool enabled);
private:
void applyStats(const ShipStats& stats, const QString& hpText);
const GameConfig* m_config;
bool m_debugDraw = false;
QLabel* m_hpLabel;
QLabel* m_speedLabel;
@@ -50,4 +54,6 @@ private:
QWidget* m_repairSection;
QLabel* m_repairRateLabel;
QLabel* m_repairRangeLabel;
QLabel* m_threatCostLabel;
};