MCPcopy Create free account
hub / github.com/chrxh/alien / getParameters

Method getParameters

source/EngineTests/DefenderTests.cpp:12–26  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

10{
11public:
12 static SimulationParameters getParameters()
13 {
14 SimulationParameters result;
15 result.innerFriction = 0;
16 result.baseValues.friction = 1;
17 for (int i = 0; i < MAX_COLORS; ++i) {
18 result.cellFunctionDefenderAgainstAttackerStrength[i] = 1000.0f;
19 result.baseValues.radiationCellAgeStrength[i] = 0;
20 result.highRadiationFactor[i] = 0;
21 for (int j = 0; j < MAX_COLORS; ++j) {
22 result.cellFunctionInjectorDurationColorMatrix[i][j] = 3;
23 }
24 }
25 return result;
26 }
27 DefenderTests()
28 : IntegrationTestFramework(getParameters())
29 {}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected