public void SetFrom(BotNeeds newNeeds)
 {
     foreach (Object fi in GetNeeds())
     {
         SetNeed(fi, newNeeds.GetNeed(fi));
     }
 }
 public void AddFrom(BotNeeds needsDiff)
 {
     foreach (Object fi in GetNeeds())
     {
         SetNeed(fi, GetNeed(fi) + needsDiff.GetNeed(fi));
     }
 }
        public BotNeeds Minus(BotNeeds needsBefore)
        {
            BotNeeds copy = Copy();

            foreach (Object need in copy.GetNeeds())
            {
                copy.SetNeed(need, copy.GetNeed(need) - needsBefore.GetNeed(need));
            }
            return(copy);
        }
예제 #4
0
 public BotNeeds Minus(BotNeeds needsBefore)
 {
     BotNeeds copy = Copy();
     foreach (Object need in copy.GetNeeds())
     {
         copy.SetNeed(need, copy.GetNeed(need) - needsBefore.GetNeed(need));
     }
     return copy;
 }
예제 #5
0
 public void SetFrom(BotNeeds newNeeds)
 {
     foreach (Object fi in GetNeeds())
     {
         SetNeed(fi, newNeeds.GetNeed(fi));
     }
 }
예제 #6
0
 public void AddFrom(BotNeeds needsDiff)
 {
     foreach (Object fi in GetNeeds())
     {
         SetNeed(fi, GetNeed(fi) + needsDiff.GetNeed(fi));
     }
 }