public void AcceptAppreciation(Appreciation appreciation) { foreach (var item in AllResouce()) { item.AcceptAppreciation(appreciation); } }
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()); } }
protected override void UpdateAppreciaitons() { Appreciation appreciation = AppreciationDictionary.GetAppreciation(1000); _appreciations.Add(appreciation); }