derive threat cost dynamically
This commit is contained in:
22
src/lib/sim/ThreatCostCalculator.h
Normal file
22
src/lib/sim/ThreatCostCalculator.h
Normal file
@@ -0,0 +1,22 @@
|
||||
#pragma once
|
||||
|
||||
#include <map>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
#include "ShipLayout.h"
|
||||
|
||||
struct GameConfig;
|
||||
|
||||
struct ThreatCostTable
|
||||
{
|
||||
std::map<std::string, double> itemThreat;
|
||||
double scrapThreat = 0.0;
|
||||
};
|
||||
|
||||
ThreatCostTable computeThreatCostTable(const GameConfig& config);
|
||||
|
||||
double calculateShipThreatCost(const ThreatCostTable& table,
|
||||
const GameConfig& config,
|
||||
const std::string& shipId,
|
||||
const std::vector<PlacedModule>& modules);
|
||||
Reference in New Issue
Block a user