DebugRun() public abstract method

Runs debug this node.
public abstract DebugRun ( AiBlackboard parameters, IList trees, int level, int nodeIndex ) : bool
parameters AiBlackboard AiBlackboard with global parameters.
trees IList Readonly list with all ai trees.
level int Level of how deep we are in this AiTree.
nodeIndex int Index of current node in parent's node. If this is root, nodeIndex is 0.
return bool
Esempio n. 1
0
        /// <summary>
        /// Runs debug this node.
        /// </summary>
        /// <param name="parameters">AiBlackboard with global parameters.</param>
        /// <param name="trees">Readonly list with all ai trees.</param>
        /// <returns>True if child node debug run failed. Otherwise false.</returns>
        public override bool DebugRun(AiBlackboard parameters, IList <AiTree> trees)
        {
            var result = _node.DebugRun(parameters, trees);

            OnDebugResult(this, !result);
            return(!result);
        }
Esempio n. 2
0
 /// <summary>
 /// Runs debug this node.
 /// </summary>
 /// <param name="parameters">AiBlackboard with global parameters.</param>
 /// <param name="trees">Readonly list with all ai trees.</param>
 /// <returns>Always returns true.</returns>
 public override bool DebugRun(AiBlackboard parameters, IList <AiTree> trees)
 {
     for (int i = 0; i < Repeat; ++i)
     {
         _node.DebugRun(parameters, trees);
     }
     OnDebugResult(this, true);
     return(true);
 }