/// <summary> /// Sets condition value. /// </summary> /// <param name="aPlanner">Ref to AIPlanner.</param> /// <param name="aAtomName">Name of Condition.</param> /// <param name="aValue">Value of Condition.</param> /// <returns>True if it was possible to set the condition value.</returns> public bool Set(AntAIPlanner aPlanner, string aAtomName, bool aValue) { return(Set(aPlanner.GetAtomIndex(aAtomName), aValue)); }
/// <summary> /// Sets condition value. /// This method can be used only after calling `BeginUpdate()`. /// </summary> /// <param name="aAtomName">Name of Condition.</param> /// <param name="aValue">Value of Condition.</param> /// <returns>True if it was possible to set the condition value.</returns> public bool Set(string aAtomName, bool aValue) { return(Set(_planner.GetAtomIndex(aAtomName), aValue)); }