protected ShipEngine findEngineByName(String name)
	{
		final List<ShipEngine> engines=getEngines();
		if(engines.size()==0) return null;
		name=name.toUpperCase();
		if(name.startsWith("ENGINE"))
		{
			final String numStr=name.substring(6);
			if(!CMath.isInteger(numStr))
				return null;
			final int num=CMath.s_int(numStr);
			if((num>0)&&(num<=engines.size()))
				return engines.get(num-1);
			return null;
		}
		ShipEngine E=(ShipEngine)CMLib.english().fetchEnvironmental(engines, name, true);
		if(E==null)
			E=(ShipEngine)CMLib.english().fetchEnvironmental(engines, name, false);
		return E;
	}