Exemple #1
0
 public void AcceptAppreciation(Appreciation appreciation)
 {
     foreach (var item in AllResouce())
     {
         item.AcceptAppreciation(appreciation);
     }
 }
Exemple #2
0
 public void AcceptAppreciation(Appreciation appreciation)
 {
     if (appreciation.ResourceType == GetType().Name.ToLower())
     {
         MaxValue   += appreciation.Capacity;
         _accApprec += appreciation.Acceleration;
     }
 }
 public static Appreciation GetAppreciation(int id)
 {
     if (Default.ContainsKey(id))
     {
         return(Default[id]);
     }
     else
     {
         return(Appreciation.NullAppreciation());
     }
 }
Exemple #4
0
        protected override void UpdateAppreciaitons()
        {
            Appreciation appreciation = AppreciationDictionary.GetAppreciation(1000);

            _appreciations.Add(appreciation);
        }