public TechRequirements lrtsRequired(LRT lrtRequired) { HashSet <LRT> reqs = new HashSet <LRT>(); reqs.Add(lrtRequired); this._lrtsRequired = reqs; return(this); }
public TechRequirements lrtsDenied(LRT lrtDenied) { HashSet <LRT> dens = new HashSet <LRT>(); dens.Add(lrtDenied); this._lrtsRequired = dens; return(this); }
public TechRequirements(int energy, int weapons, int propulsion, int construction, int electronics, int biotechnology, PRT prtRequired, PRT prtDenied, LRT lrtRequired, LRT lrtDenied) : base(energy, weapons, propulsion, construction, electronics, biotechnology) { this._prtRequired = prtRequired; this._prtDenied = prtDenied; HashSet <LRT> lrtset = new HashSet <LRT>(); lrtset.Add(lrtRequired); HashSet <LRT> lrtDenyset = new HashSet <LRT>(); lrtDenyset.Add(lrtDenied); this._lrtsRequired = lrtset; this._lrtsDenied = lrtDenyset; }
/** * Determine if this race has an LRT */ public bool hasLRT(LRT lrt) { return(lrts.Contains(lrt)); }