//AllResearches _thisResearch; public Manufacture(string name, string description, AllManufacture manufacture, int cost) { _name = name; _description = description; _thisManufacture = manufacture; _isLearned = false; _cost = cost; }
public bool IsResearchLearned(AllManufacture Manufacture) { for (int i = 0; i < _manufacture.Count; i++) { if (_manufacture[i].GetManufacture() == Manufacture) { if (_manufacture[i].IsLearned()) { return(true); } else { return(false); } } }//end of for loop return(false); }