示例#1
0
	private IEnumerator MedicineObjProcess () {
		if(medicine[0].appearedID == 0){
			ResetAppearedID();
		}

		foreach(var m in medicine){
			if(m.appearedID == curID){
				curMedicine = m;
				playingState = PlayingState.ObjCreate;
			}
		}
		PlayingAnimControl();
		while(playingState == PlayingState.ObjCreate){
			yield return null;
		}
		if(playingState == PlayingState.BonusLevel){
			PlayingAnimControl();
			while(playingState == PlayingState.BonusLevel){
				yield return null;
			}
		}
		PlayingAnimControl();
		while(playingState == PlayingState.ChoiceTime){
			yield return null;
		}
		PlayingAnimControl();
		while(playingState != PlayingState.Result){
			yield return null;
		}
		PlayingAnimControl();

		if(curID != 5){
			curID +=1;
		}else if(curID == 5){
			curID = 1;
			ResetAppearedID();
		}
		playingState = PlayingState.Null;
		if(gamingState == GamingState.Playing){
			isPlayingGame = true;
		}
	}
示例#2
0
        private MedicineInfo getProDetial(string page)
        {
            var list = RegGroupCollection(page, "<tr>(?<x>.*?)</tr>");
            if (list.Count<15)
                return null;

            try
            {
                MedicineInfo obj = new MedicineInfo();
                obj.ApprovalNum = RegGroupsX<string>(list[0].Groups["x"].Value, "<td bgcolor=\"#eaeaea\" width=83%>(?<x>.*?)</td>");
                obj.ApprovalNum = obj.ApprovalNum.Replace("国药准字", "");
                obj.ProName = RegGroupsX<string>(list[1].Groups["x"].Value, "width=83%>(?<x>.*?)</td>");
                obj.EnglishName = RegGroupsX<string>(list[2].Groups["x"].Value, "width=83%>(?<x>.*?)</td>");
                obj.Dosageforms = RegGroupsX<string>(list[4].Groups["x"].Value, "width=83%>(?<x>.*?)</td>");
                obj.Specification = RegGroupsX<string>(list[5].Groups["x"].Value, "width=83%>(?<x>.*?)</td>");
                obj.ProductionUnit = RegGroupsX<string>(list[6].Groups["x"].Value, "<a href=\".*?\">(?<x>.*?)</a>");
                obj.ProductionAddress = RegGroupsX<string>(list[7].Groups["x"].Value, "width=83%>(?<x>.*?)</td>");
                obj.Category = RegGroupsX<string>(list[8].Groups["x"].Value, "width=83%>(?<x>.*?)</td>");
                obj.ApprovalDate = RegGroupsX<DateTime>(list[10].Groups["x"].Value, "width=83%>(?<x>.*?)</td>");
                obj.DrugbasedCode = RegGroupsX<string>(list[11].Groups["x"].Value, "width=83%>(?<x>.*?)</td>");

                obj.DrugbasedBack = RegGroupsX<string>(list[12].Groups["x"].Value, "width=83%>(?<x>.*?)</td>");
                obj.Remark =WordCenter.FilterHtml(RegGroupsX<string>(list[15].Groups["x"].Value, "<td bgcolor=\"#eaeaea\">(?<x>.*?)</td>"));

                return obj;
            }
            catch (Exception)
            {
                return null;
            }
        }
        private void InitializeDeltaAngles()
        {
            var medicineInfo = new MedicineInfo(new DeltaAngle(29, 25));
            _medicineInfoDict.Add(7290008086363, medicineInfo);

            medicineInfo = new MedicineInfo(new DeltaAngle(14, 27));
            _medicineInfoDict.Add(7290008097376, medicineInfo);

            medicineInfo = new MedicineInfo(new DeltaAngle(17, 27));
            _medicineInfoDict.Add(729000806198, medicineInfo);

            medicineInfo = new MedicineInfo(new DeltaAngle(21, 26));
            _medicineInfoDict.Add(7290102062281, medicineInfo);

            medicineInfo = new MedicineInfo(new DeltaAngle(5, 39));
            _medicineInfoDict.Add(7290008004664, medicineInfo);

            medicineInfo = new MedicineInfo(new DeltaAngle(34, 24));
            _medicineInfoDict.Add(7290008546287, medicineInfo);

            medicineInfo = new MedicineInfo(new DeltaAngle(37, 23));
            _medicineInfoDict.Add(729000002988, medicineInfo);

            medicineInfo = new MedicineInfo(new DeltaAngle(41, 22));
            _medicineInfoDict.Add(7290008872317, medicineInfo);

            medicineInfo = new MedicineInfo(new DeltaAngle(39, 22));
            _medicineInfoDict.Add(729000801650, medicineInfo);

            medicineInfo = new MedicineInfo(new DeltaAngle(6, 27));
            _medicineInfoDict.Add(7290008546126, medicineInfo);

            medicineInfo = new MedicineInfo(new DeltaAngle(26, 26));
            _medicineInfoDict.Add(729008546003, medicineInfo);

            medicineInfo = new MedicineInfo(new DeltaAngle(21, 26));
            _medicineInfoDict.Add(7290102062218, medicineInfo);

            medicineInfo = new MedicineInfo(new DeltaAngle(31, 25));
            _medicineInfoDict.Add(7290000810027, medicineInfo);

            medicineInfo = new MedicineInfo(new DeltaAngle(10, 27));
            _medicineInfoDict.Add(7290000812335, medicineInfo);
        }