/// <summary> /// Performs a doable, if it exists and is unlocked. /// </summary> /// <param name="doable"></param> public void PerformDoable(string doable) { if (Doables.ContainsKey(doable) && Doables[doable].Unlocked) { Doables[doable].Perform(); } else { Console.WriteLine("No doable with the name " + doable + " is unlocked"); } }
public void AddDoable(Doable doable) { Doables.Add(doable.Name, doable); }