Пример #1
0
        public override string ToString()
        {
            String pronom = getPronomFromSexe();
            String type   = (DegreDecomposition == 10) ? "squelette" : "zombie";

            if (Affectation != null)
            {
                return(Prenom + " " + Nom + " (n°" + Matricule + ") est un " + type + " qui possède " + Cagnotte + " points dans sa cagnotte et qui est affecté à " + Affectation.Nom + ". "
                       + pronom + " est " + teint.ToString() + " (Degré " + degreDecomposition + "). " + getStringFromFonction());
            }
            else if (AffectationAutre != null)
            {
                string aff = (AffectationAutre == "parc") ? "est affecté au parc" : "ne peut pas être affecté";
                return(Prenom + " " + Nom + " (n°" + Matricule + ") est un " + type + " qui possède " + Cagnotte + " points dans sa cagnotte et qui " + aff + ". "
                       + pronom + " est " + teint.ToString() + " (Degré " + degreDecomposition + "). " + getStringFromFonction());
            }
            else
            {
                return(Prenom + " " + Nom + " (n°" + Matricule + ") est un " + type + " qui possède " + Cagnotte + " points dans sa cagnotte et qui n'est affecté à aucune attraction. "
                       + pronom + " est " + teint.ToString() + " (Degré " + degreDecomposition + "). " + getStringFromFonction());
            }
        }
Пример #2
0
 public override string ToCVS()
 {
     return("Zombie;" + base.ToCVS() + teint.ToString() + ";" + degreDecomposition + ";");
 }