MCPcopy Create free account
hub / github.com/FlaxEngine/FlaxEngine / RemoveGoal

Method RemoveGoal

Source/Engine/AI/BehaviorKnowledge.cpp:241–252  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

239}
240
241void BehaviorKnowledge::RemoveGoal(ScriptingTypeHandle type)
242{
243 for (int32 i = 0; i < Goals.Count(); i++)
244 {
245 const ScriptingTypeHandle goalType = Scripting::FindScriptingType(Goals[i].Type.GetTypeName());
246 if (goalType == type)
247 {
248 Goals.RemoveAt(i);
249 break;
250 }
251 }
252}
253
254bool BehaviorKnowledge::CompareValues(float a, float b, BehaviorValueComparison comparison)
255{

Callers

nothing calls this directly

Calls 4

FindScriptingTypeFunction · 0.85
CountMethod · 0.45
GetTypeNameMethod · 0.45
RemoveAtMethod · 0.45

Tested by

no test coverage detected