Example #1
0
 /// <summary>
 /// Used by TeamPlanner to push information about team goals
 /// to the agent.
 /// </summary>
 /// <returns>The agent's GoalTeamwork object.</returns>
 internal GoalTeamwork getTeamGoal()
 {
     if (teamworkGoal_ == null)
     {
         teamworkGoal_ = new GoalTeamwork(AI_);
     }
     return teamworkGoal_;
 }
Example #2
0
 /// <summary>
 /// Sets a GoalTeamwork object which will be used by a TeamPlanner.
 /// </summary>
 /// <param name="goal">The GoalTeamwork object being set.</param>
 internal void setTeamGoal(GoalTeamwork goal)
 {
     goals_.Remove(teamworkGoal_);
     teamworkGoal_ = goal;
     goals_.Add(teamworkGoal_);
 }