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));
     }
 }