public bool IsCompleted(Profile profile) { int n = 0; foreach (var v in Maps) { if (profile.IsCompleted(v.MapName)) { n++; } } return(n == Maps.Count); }
/// <summary> /// Money the profile can earn without unlocking a new tier /// </summary> /// <param name="profile"></param> /// <returns></returns> public int MoneyAvailableToEarn(Profile profile) { int y = 0; foreach (var v in profile.AvailableTiers) { var t = GetTier(v); foreach (var m in t.Maps) { if (!profile.IsCompleted(m.MapName)) { y += m.Yield; } } } return(y); }
public bool IsCompleted(Profile profile) { int n = 0; foreach (var v in Maps) if (profile.IsCompleted(v.MapName)) n++; return n == Maps.Count; }
public bool IsCompleted(Profile profile) { return profile.IsCompleted(MapName); }
/// <summary> /// Money the profile can earn without unlocking a new tier /// </summary> /// <param name="profile"></param> /// <returns></returns> public int MoneyAvailableToEarn(Profile profile) { int y = 0; foreach (var v in profile.AvailableTiers) { var t = GetTier(v); foreach (var m in t.Maps) if (!profile.IsCompleted(m.MapName)) { y += m.Yield; } } return y; }
public bool IsCompleted(Profile profile) { return(profile.IsCompleted(MapName)); }