| 476 | } |
| 477 | |
| 478 | void DescriptionEditService::randomizeCountdowns(ClusteredDataDescription& data, int minValue, int maxValue) |
| 479 | { |
| 480 | for (auto& cluster : data.clusters) { |
| 481 | auto countdown = NumberGenerator::get().getRandomReal(toDouble(minValue), toDouble(maxValue)); |
| 482 | for (auto& cell : cluster.cells) { |
| 483 | if (cell.getCellFunctionType() == CellFunction_Detonator) { |
| 484 | std::get<DetonatorDescription>(*cell.cellFunction).countdown = countdown; |
| 485 | } |
| 486 | } |
| 487 | } |
| 488 | } |
| 489 | |
| 490 | void DescriptionEditService::randomizeMutationIds(ClusteredDataDescription& data) |
| 491 | { |
no test coverage detected