Example #1
0
 /*public bool agentInHelpList(System.Guid agentNumber){
  *
  *      List<WorkingMemoryValue> helpLists = BlackBoard.Instance.getFact("HelpList");
  *
  *                      bool inHelpList= false;
  *
  *                      foreach(WorkingMemoryValue helpList in helpLists)
  *                      {
  *                              Dictionary<string, WorkingMemoryValue> temp = (Dictionary<string, WorkingMemoryValue>)helpList.getFactValue();
  *                              if(temp["Owner"].getFactValue().Equals(agentNumber))
  *                              {
  *                                      inHelpList = true;
  *                                      break;
  *                              }
  *
  *                      }
  *
  *      return inHelpList;
  *
  * }
  */
 //public void AddToTaskTree(AStarNode planStep, Vector3 position, int treeIndex)
 public void AddToTaskTree(List <TreeNode> plan)
 {
     taskTree.AddSubtree(plan);
 }
Example #2
0
 public void AddToTaskTree(List <TreeNode> plan)    //Add a new subtree with actions to the tasktree for a clan
 {
     taskTree.AddSubtree(plan);
 }