| 7 | #include "EngineImpl/SimulationFacadeImpl.h" |
| 8 | |
| 9 | IntegrationTestFramework::IntegrationTestFramework(std::optional<SimulationParameters> const& parameters_, IntVector2D const& universeSize) |
| 10 | { |
| 11 | _simulationFacade = std::make_shared<_SimulationFacadeImpl>(); |
| 12 | GeneralSettings generalSettings{universeSize.x, universeSize.y}; |
| 13 | SimulationParameters parameters; |
| 14 | if (parameters_) { |
| 15 | parameters = *parameters_; |
| 16 | } else { |
| 17 | for (int i = 0; i < MAX_COLORS; ++i) { |
| 18 | parameters.baseValues.radiationCellAgeStrength[i] = 0; |
| 19 | } |
| 20 | } |
| 21 | _simulationFacade->newSimulation(0, generalSettings, parameters); |
| 22 | _parameters = _simulationFacade->getSimulationParameters(); |
| 23 | } |
| 24 | |
| 25 | IntegrationTestFramework::~IntegrationTestFramework() |
| 26 | { |
nothing calls this directly
no test coverage detected