| 204 | } |
| 205 | |
| 206 | bool 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 | |
| 217 | const Variant& BehaviorKnowledge::GetGoal(ScriptingTypeHandle type) const |
| 218 | { |
no test coverage detected