MCPcopy Create free account
hub / github.com/BohemiaInteractive/CWR / AddVariable

Method AddVariable

engine/Poseidon/AI/AICenterStats.cpp:69–80  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

67const float AccuracyLast = 7200; // how long we can remember the information
68
69void AIStatsCampaign::AddVariable(GameVariable& var)
70{
71 for (int i = 0; i < _variables.Size(); i++)
72 {
73 if (_variables[i]._name == var._name)
74 {
75 _variables[i] = var;
76 return;
77 }
78 }
79 _variables.Add(var);
80}
81
82void AIStatsCampaign::Update(AIStatsMission& mission)
83{

Callers 1

SaveVarFunction · 0.80

Calls 2

SizeMethod · 0.45
AddMethod · 0.45

Tested by

no test coverage detected