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

Method HasGoal

Source/Engine/AI/BehaviorKnowledge.cpp:206–215  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

204}
205
206bool BehaviorKnowledge::HasGoal(ScriptingTypeHandle type) const
207{
208 for (int32 i = 0; i < Goals.Count(); i++)
209 {
210 const ScriptingTypeHandle goalType = Scripting::FindScriptingType(Goals[i].Type.GetTypeName());
211 if (goalType == type)
212 return true;
213 }
214 return false;
215}
216
217const Variant& BehaviorKnowledge::GetGoal(ScriptingTypeHandle type) const
218{

Callers 1

RefreshMethod · 0.45

Calls 3

FindScriptingTypeFunction · 0.85
CountMethod · 0.45
GetTypeNameMethod · 0.45

Tested by

no test coverage detected