Пример #1
0
    public TechRequirements lrtsRequired(LRT lrtRequired)
    {
        HashSet <LRT> reqs = new HashSet <LRT>();

        reqs.Add(lrtRequired);
        this._lrtsRequired = reqs;
        return(this);
    }
Пример #2
0
    public TechRequirements lrtsDenied(LRT lrtDenied)
    {
        HashSet <LRT> dens = new HashSet <LRT>();

        dens.Add(lrtDenied);
        this._lrtsRequired = dens;
        return(this);
    }
Пример #3
0
    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;
    }
Пример #4
0
 /**
  * Determine if this race has an LRT
  */
 public bool hasLRT(LRT lrt)
 {
     return(lrts.Contains(lrt));
 }