/** * Return True if the player can have this tech, False otherwise */ public bool hasTech(Tech tech) { return(true); // check the PRT TechRequirements req = tech.getTechRequirements(); if (req.getPrtRequired() != race.getPRT()) { return(false); } if (race.getPRT() == req.getPrtDenied()) { return(false); } foreach (LRT lrt in req.getLrtsRequired()) { if (!race.getLrts().Contains(lrt)) { return(false); } } foreach (LRT lrt in req.getLrtsDenied()) { if (race.getLrts().Contains(lrt)) { return(false); } } if (techLevels.lt(req)) { return(false); } return(true); }