Beispiel #1
0
        /***********************************************************************************************************/
        /************************************** Lecture <ennemi_points_debut>    ***********************************/
        /***********************************************************************************************************/

        public string PointsEnnemiEntreBalises(string texte, string tag_ennemi_points_debut, string tag_ennemi_points_fin)
        {
            string strTexte = texte;
            string StringFinale;
            int    Pos1 = strTexte.IndexOf(tag_ennemi_points_debut) + tag_ennemi_points_debut.Length;
            int    Pos2 = strTexte.IndexOf(tag_ennemi_points_fin);

            StringFinale = strTexte.Substring(Pos1, Pos2 - Pos1);
            StringFinale.Replace("\n", "").Replace("\r", "").Replace("\\", "");
            return(StringFinale);
        }
Beispiel #2
0
        /**************************************************************************************************************/
        /*Lecture balises <or_debut>,<points_de_chance_debut>,<pdv_debut>,<habilete_debut>,<tentez_votre_chance_debut>*/
        /**************************************************************************************************************/
        public string OrPointsdeChancePDVHabileteTentezVotreChance_EntreBalises(string texte, string tag_or_debut, string tag_or_fin)
        {
            string strTexte = texte;
            string StringFinale;
            int    Pos1 = strTexte.IndexOf(tag_or_debut) + tag_or_debut.Length;
            int    Pos2 = strTexte.IndexOf(tag_or_fin);

            StringFinale = strTexte.Substring(Pos1, Pos2 - Pos1);
            StringFinale.Replace("\n", "").Replace("\r", "").Replace("\\", "");
            return(StringFinale);
        }
Beispiel #3
0
        /***********************************************************************************************************/
        /**************************************   Lecture <heros_image_debut>   ************************************/
        /***********************************************************************************************************/
        public string Chemin_Image_Heros_ArrierePlan_Ennemi_ou_Son(string texte, string balise_debut, string balise_fin)
        {
            string strTexte = texte;
            string StringFinale;
            int    Pos1 = strTexte.IndexOf(balise_debut) + balise_debut.Length;
            int    Pos2 = strTexte.IndexOf(balise_fin);

            StringFinale = strTexte.Substring(Pos1, Pos2 - Pos1);
            string cleaned  = StringFinale.Replace("\n", "").Replace("\r", "");
            string cleaned2 = ".\\\\" + cleaned;

            return(cleaned2);
        }