Exemplo n.º 1
0
 public Regne(GenreVivant pGenreVivant, Sexe pSexe, string pName, bool pVivant)
 {
     this.mGenreVivant = pGenreVivant;
     this.mSexe        = pSexe;
     this.mName        = pName;
     this.mVivant      = pVivant;
 }
Exemplo n.º 2
0
        public PersonnageJouable(int vie, int mana, int force, Arme arme, Sexe sexe, GameWindow window)
            : base(vie, mana, force, arme)
        {
            #region Rectangles de collision
                rectangle = new Rectangle(window.ClientBounds.Width / 2 - 10, window.ClientBounds.Height / 2 - 25, 40, 100);
                collisionhaut = new Rectangle(rectangle.X, rectangle.Y + 60, rectangle.Width, 40);
                collisionbas = new Rectangle(rectangle.X, rectangle.Y + rectangle.Height, rectangle.Width, 10);
                collisiongauche = new Rectangle(rectangle.X - 10, rectangle.Y + 80, 10, 20);
                collisiondroite = new Rectangle(rectangle.X + rectangle.Width, rectangle.Y + 80, 10, 20);
            #endregion

            this.sexe = sexe;
            this.window = window;
            vieMax = 40;
            manaMax = 0;
            #region Initialisation des booleens de deplacement
            dplcmthaut = false;
            dplcmtbas = false;
            dplcmtgauche = false;
            dplcmtdroite = false;
            versbas = false;
            versdroite = false;
            versgauche = false;
            vershaut = false;
            #endregion

            #region Initialisation des textures(Vers le bas)
            haut = false;
            bas = true;
            gauche = false;
            droite = false;
            compteurtext = 0;
            #endregion
        }
Exemplo n.º 3
0
        /// <summary>
        /// Récupère la ligne à écrire dans un fichier CSV qui représente l'objet actuel
        /// </summary>
        /// <returns></returns>
        public virtual string GetCSVline()
        {
            StringBuilder stringBuilder = new StringBuilder();

            stringBuilder.Append("Monstre")
            .Append(";")
            .Append(Matricule)
            .Append(";")
            .Append(Nom)
            .Append(";")
            .Append(Prenom)
            .Append(";")
            .Append(Sexe.ToString())
            .Append(";")
            .Append(Fonction)
            .Append(";")
            .Append(Cagnotte)
            .Append(";");
            if (Affectation != null)
            {
                stringBuilder.Append(Affectation.Identifiant).Append(";");
            }
            else if (AffectationAutre != null)
            {
                stringBuilder.Append(AffectationAutre).Append(";");
            }
            else
            {
                stringBuilder.Append("").Append(";");
            }

            return(stringBuilder.ToString());
        }
        public IHttpActionResult PutSexe(int id, Sexe sexe)
        {
            String mensaje = "";

            if (!ModelState.IsValid)
            {
                return(BadRequest(ModelState));
            }

            if (id != sexe.id)
            {
                return(BadRequest());
            }

            db.Entry(sexe).State = EntityState.Modified;

            try
            {
                db.SaveChanges();
            }
            catch (DbUpdateConcurrencyException ex)
            {
                //Modificamos nuestra Exception con nuestro método de la clase estatica Utilidades para
                //tener feedback con el usuario y que este sepa cuál es el error;
                SqlException sqlException = (SqlException)ex.InnerException.InnerException;
                mensaje = Utilidades.Utilidades.MensajeError(sqlException);
            }

            return(StatusCode(HttpStatusCode.NoContent));
        }
Exemplo n.º 5
0
        /// <summary>
        /// Récupère la ligne à écrire dans un fichier CSV qui représente l'objet actuel
        /// </summary>
        /// <returns></returns>
        public string GetCSVline()
        {
            StringBuilder stringBuilder = new StringBuilder();
            StringBuilder pvrs          = new StringBuilder();

            for (int i = 0; i < Pouvoirs.Count; i++)
            {
                if (i == Pouvoirs.Count - 1)
                {
                    pvrs.Append(Pouvoirs.ElementAt(i));
                }
                else
                {
                    pvrs.Append(Pouvoirs.ElementAt(i)).Append("-");
                }
            }
            stringBuilder.Append("Sorcier")
            .Append(";")
            .Append(Matricule)
            .Append(";")
            .Append(Nom)
            .Append(";")
            .Append(Prenom)
            .Append(";")
            .Append(Sexe.ToString())
            .Append(";")
            .Append(Fonction)
            .Append(";")
            .Append(Tatouage.ToString())
            .Append(";")
            .Append(pvrs)
            .Append(";");
            return(stringBuilder.ToString());
        }
Exemplo n.º 6
0
        public Joueur(GameWindow fenetre, Sexe sexe)
        {
            largeur_ecran = fenetre.ClientBounds.Width;
            hauteur_ecran = fenetre.ClientBounds.Height;
            centre_joueur = new Vector2(200, hauteur_ecran / 2 );
            courseactive = false;

            haut = false;
            bas = true;
            gauche = false;
            droite = false;

            blocage_haut = false;
            blocage_bas = false;
            blocage_gauche = false;
            blocage_droit = false;

            fleche_bas = false;
            fleche_droite = false;
            fleche_gauche = false;
            fleche_haut = false;

            this.sexe = sexe;

            vieMax = 100;
            manaMax = 100;
            vie = 100;
            mana = 0;
        }
Exemplo n.º 7
0
        /// <summary>
        /// Récupère la ligne à écrire dans un fichier CSV qui représente l'objet actuel
        /// </summary>
        /// <returns></returns>
        public override string GetCSVline()
        {
            StringBuilder stringBuilder = new StringBuilder();

            stringBuilder.Append("Vampire")
            .Append(";")
            .Append(Matricule)
            .Append(";")
            .Append(Nom)
            .Append(";")
            .Append(Prenom)
            .Append(";")
            .Append(Sexe.ToString())
            .Append(";")
            .Append(Fonction)
            .Append(";")
            .Append(Cagnotte)
            .Append(";");
            if (Affectation != null)
            {
                stringBuilder.Append(Affectation.Identifiant).Append(";");
            }
            else if (AffectationAutre != null)
            {
                stringBuilder.Append(AffectationAutre).Append(";");
            }
            else
            {
                stringBuilder.Append("").Append(";");
            }
            stringBuilder.Append(IndiceLuminosite).Append(";");

            return(stringBuilder.ToString());
        }
Exemplo n.º 8
0
        public ActionResult DeleteConfirmed(int id)
        {
            Sexe sexe = db.Sexes.Find(id);

            db.Sexes.Remove(sexe);
            db.SaveChanges();
            return(RedirectToAction("Index"));
        }
Exemplo n.º 9
0
 /// <summary>
 /// Constructeur d'un viking qui permet également d'initialiser les propriétés Path et Identité
 /// </summary>
 /// <param name="name"></param>
 /// <param name="image"></param>
 /// <param name="text1"></param>
 /// <param name="text2"></param>
 /// <param name="sex"></param>
 /// <param name="mere"></param>
 /// <param name="pere"></param>
 /// <param name="dtn"></param>
 /// <param name="dtd"></param>
 public Viking(string name, string image, string text1, string text2, Sexe sex, String mere, String pere, DateTime dtn, DateTime dtd) : base(name, image, text1, text2)
 {
     Sexe     = sex;
     Pere     = pere;
     Mere     = mere;
     Dtn      = dtn;
     Dtd      = dtd;
     Identite = _identite;
 }
Exemplo n.º 10
0
 protected Personne(string nom, string prenom, DateTime naissance, string adresse, Sexe sexe, string num)
 {
     this.nom       = nom;
     this.prenom    = prenom;
     this.num       = num;
     this.sexe      = sexe;
     this.naissance = naissance;
     this.adresse   = adresse;
 }
Exemplo n.º 11
0
 /// <summary>
 /// Constructeur pour créer un visiteur
 /// </summary>
 /// <param name="x"></param>
 /// <param name="y"></param>
 /// <param name="s"></param>
 /// <param name="tab"></param>
 /// <param name="listeVisiteur"></param>
 /// <param name="listeConcierge"></param>
 /// <param name="Hero"></param>
 public Visiteur(int x, int y, Sexe s, Bitmap[,] tab, List <Visiteur> listeVisiteur, List <Concierge> listeConcierge, Hero Hero) : base(x, y, tab)
 {
     _sexe           = s;
     nom             = listeNoms[GenererNom()];
     tabOrientation  = DeterminerVisiteur();
     _listeConcierge = listeConcierge;
     _listeVisiteur  = listeVisiteur;
     hero            = Hero;
 }
Exemplo n.º 12
0
 public ActionResult Edit([Bind(Include = "id,nom")] Sexe sexe)
 {
     if (ModelState.IsValid)
     {
         db.Entry(sexe).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(sexe));
 }
Exemplo n.º 13
0
 public Personne(string prenom, string nom, string numSociale, Sexe sexe, string lieuNaissance, DateTime dateNaissance, EtatCivile etatCivile, string qualificatif = "")
 {
     this.prenom        = prenom;
     this.nom           = nom;
     this.lieuNaissance = lieuNaissance;
     this.dateNaissance = dateNaissance;
     this.etatCivile    = etatCivile;
     this.sexe          = sexe;
     this.age           = DateTime.Now.Year - dateNaissance.Year;
 }
Exemplo n.º 14
0
 public Persona(string nom, Sexe sexe, decimal dinersQuePorta, decimal preuAproximatDeLaRoba, Calçat sabates, bool portaPantalonsCurts, bool semblaQueHaBegutMoltAlcohol)
 {
     Nom                         = nom;
     Sexe                        = sexe;
     DinersQuePorta              = dinersQuePorta;
     PreuAproximatDeLaRoba       = preuAproximatDeLaRoba;
     Sabates                     = sabates;
     PortaPantalonsCurts         = portaPantalonsCurts;
     SemblaQueHaBegutMoltAlcohol = semblaQueHaBegutMoltAlcohol;
 }
Exemplo n.º 15
0
        public ActionResult Create([Bind(Include = "id,nom")] Sexe sexe)
        {
            if (ModelState.IsValid)
            {
                db.Sexes.Add(sexe);
                db.SaveChanges();
                return(RedirectToAction("Index"));
            }

            return(View(sexe));
        }
Exemplo n.º 16
0
 //constructeur par defaut
 public Joueur(string nom, Sexe sexe, Monstre monstre_dep)
 {
     nomJoueur      = nom;
     this.sexe      = sexe;
     argent         = 500.00;
     monstreDepart  = monstre_dep;
     monstreCapture = new Monstre[25];
     equipe         = new Monstre[5];
     equipe[0]      = monstreDepart;
     inventaire     = new Inventaire(3, 0, 0, 0); // Inventaire par défaut 3 pokeballs, 0 potions
 }
Exemplo n.º 17
0
        public Monstre(string nom, string prenom, Sexe sexe, string fonctionDansEntreprise, int matricule, Attraction affectation, int cagnotte)
        {
            this.Nom    = nom;
            this.Prenom = prenom;
            this.Sexe   = sexe;
            this.FonctionDansEntreprise = fonctionDansEntreprise;
            this.Matricule = matricule;

            this.Affectation = affectation;
            this.Cagnotte    = cagnotte;
        }
Exemplo n.º 18
0
 public Joueur(string nom, Sexe sexe, int age, Inventaire inventaire, List <Monstre> monstresCaptures, Equipe equipe)
 {
     this.Nom              = nom;
     this.Argent           = ArgentDepart;
     this.Niveau           = NiveauDepart;
     this.Sex              = sexe;
     this.Age              = age;
     this.inventaire       = inventaire;
     this.monstresCaptures = monstresCaptures;
     this._equipe          = equipe;
 }
Exemplo n.º 19
0
 public void ComputeStats()
 {
     sexe              = (Sexe)Random.Range(0, 2);
     alimentation      = torso.GetAlimentation();
     force             = torso.GetForce();
     vitesse           = torso.GetVitesse();
     satiete           = torso.GetSatiete();
     maturationTemps   = torso.GetMaturationTemps();
     cycleReproduction = torso.GetCycleReproduction();
     poids             = torso.GetPoids();
 }
        public IHttpActionResult GetSexe(int id)
        {
            Sexe sexe = db.Sexe.Find(id);

            if (sexe == null)
            {
                return(NotFound());
            }

            return(Ok(sexe));
        }
Exemplo n.º 21
0
 /// <summary>
 /// Constructeur d'un utilisateur
 /// </summary>
 /// <param name="pseudo">pseudo de l'utilisateur à créer</param>
 /// <param name="mdp">mot de passe de l'utilisateur à créer</param>
 /// <param name="nom">nom de l'utilisateur à créer</param>
 /// <param name="prenom">prenom de l'utilisateur à créer</param>
 /// <param name="sexe">sexe de l'utilisateur à créer</param>
 /// <param name="ddN">date de naissance de l'utilisateur à créer</param>
 /// <param name="numTel">numéro de téléphone de l'utilisateur à créer (optionel)</param>
 /// <param name="ville">ville d'habitation de l'utilisateur à créer (optionel)</param>
 /// <param name="boissonPref">type de boisson préférée de l'utilisateur à créer (optionel)</param>
 /// <param name="photo">chemin de la photo à ajouter pour le profil de l'utilisateur(optionel)</param>
 public User(string pseudo, string mdp, string nom, string prenom, Sexe sexe, DateTime ddN, string numTel = "", string ville = "", TypeBoisson?boissonPref = null, string photo = "Images/photoprofil.jpg")
 {
     Pseudo        = pseudo;
     Mdp           = mdp;
     Nom           = nom;
     Prenom        = prenom;
     Sexe          = sexe;
     DdN           = ddN;
     NumTel        = numTel;
     Ville         = ville;
     BoissonPref   = boissonPref;
     PhotoDeProfil = photo;
 }
Exemplo n.º 22
0
 public Student(Student s)
 {
     FirstName = s.FirstName;
     LastName  = s.LastName;
     EmailS    = s.EmailS;
     TelS      = s.TelS;
     Sexe      = s.Sexe;
     BornOn    = s.BornOn;
     BornAt    = s.BornAt;
     Photo     = s.Photo;
     Matricule = $"{FirstName.Substring(0, 2)}{BornOn.Year.ToString().Substring(2)}" +
                 $"{count++.ToString().PadLeft(4, '0')}{Sexe.Substring(0, 1)}";
 }
Exemplo n.º 23
0
        public Joueur(GameWindow fenetre, Sexe sexe, int x, int y)
        {
            largeur_ecran = fenetre.ClientBounds.Width;
            hauteur_ecran = fenetre.ClientBounds.Height;
            centre_joueur = new Vector2(x, y);
            courseactive = false;

            haut = false;
            bas = true;
            gauche = false;
            droite = false;

            this.sexe = sexe;
        }
Exemplo n.º 24
0
 public Etudiant(Etudiant e, Ecole s)
     : base(s.Name, s.Tel, s.Logo, s.Email)
 {
     FirstName = e.FirstName;
     LastName  = e.LastName;
     EmailS    = e.EmailS;
     TelS      = e.TelS;
     Sexe      = e.Sexe;
     BornOn    = e.BornOn;
     BornAt    = e.BornAt;
     Photo     = e.Photo;
     Matricule = $"{FirstName.Substring(0, 2)}{BornOn.Year.ToString().Substring(2)}" +
                 $"{count++.ToString().PadLeft(4, '0')}{Sexe.Substring(0, 1)}";
 }
Exemplo n.º 25
0
        // GET: Sexes/Delete/5
        public ActionResult Delete(int?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            Sexe sexe = db.Sexes.Find(id);

            if (sexe == null)
            {
                return(HttpNotFound());
            }
            return(View(sexe));
        }
Exemplo n.º 26
0
        /// <summary> ans
        /// Permet à un utilisateur de s'inscrire à condition qu'il n'existe pas déja (pseudos différents) et qu'il est plus de 18 ans
        /// </summary>
        /// <param name="pseudo">Pseudo de l'utilisateur souhaitant être ajouté</param>
        /// <param name="mdp">Mot de passe de l'utilisateur souhaitant être ajouté</param>
        /// <param name="nom">Nom de l'utilisateur souhaitant être ajouté</param>
        /// <param name="prenom">Prénom de l'utilisateur souhaitant être ajouté</param>
        /// <param name="sexe">Sexe de l'utilisateur souhaitant être ajouté</param>
        /// <param name="ddN">Date de naissance de l'utilisateur souhaitant être ajouté</param>
        /// <param name="numTel">Numéro de téléphone de l'utilisateur souhaitant être ajouté (optionnel)</param>
        /// <param name="ville">Ville de l'utilisateur souhaitant être ajouté (optionnel)</param>
        /// <param name="boissonPref">Type de boisson préféré par l'utilisateur souhaitant être ajouté (optionnel)</param>
        /// <param name="photo">Photo de profil  de l'utilisateur souhaitant être ajouté (optionnel) si rien de préciser photo par défaut</param>
        public void sInscrire(string pseudo, string mdp, string nom, string prenom, Sexe sexe, DateTime ddN, string numTel = "", string ville = "", TypeBoisson?boissonPref = null, string photo = "")
        {
            if (this.CalculAge(ddN) < 18)
            {
                throw new Exception("vous n'avez pas l'age requis");
            }

            if (rechercherUser(pseudo))
            {
                throw new Exception("Ce user existe déja");
            }
            User newUser = new User(pseudo, mdp, nom, prenom, sexe, ddN, numTel, ville, boissonPref, photo);

            listUsers.Add(newUser);
        }
Exemplo n.º 27
0
        public string[] Read()
        {
            while (!reader.EndOfStream)
            {
                string[] Values = reader.ReadLine().Split(',');

                sauvegarde[i] = new CharStartOutfitEntry {
                };

                UniqueID.Add(Convert.ToInt32(Values[0])); // 1
                sauvegarde[i].UniqueIndex = Convert.ToInt32(Values[0]);

                Race.Add(Convert.ToInt32(Values[1])); // 2
                sauvegarde[i].RaceID = Convert.ToInt32(Values[1]);

                Classe.Add(Convert.ToInt32(Values[2])); // 3
                sauvegarde[i].ClassID = Convert.ToInt32(Values[2]);

                Sexe.Add(Convert.ToInt32(Values[3])); // 4
                sauvegarde[i].SexeID = Convert.ToInt32(Values[3]);

                for (int j = 5; j != 29; j++) // 6 à 29
                {
                    ItemID.Add(Convert.ToInt32(Values[j]));
                    sauvegarde[i].ItemID[j - 5] = Convert.ToInt32(Values[j]);
                }

                for (int j = 29; j != 53; j++) // 30 à 53
                {
                    ItemDisplayID.Add(Convert.ToInt32(Values[j]));
                    sauvegarde[i].ItemDisplayID[j - 29] = Convert.ToInt32(Values[j]);
                }

                for (int j = 53; j != 77; j++) // 54 à 77
                {
                    EquipementID.Add(Convert.ToInt32(Values[j]));
                    sauvegarde[i].EquipementID[j - 53] = Convert.ToInt32(Values[j]);
                }

                i++;
                Length++;
            }
            return(null);
        }
Exemplo n.º 28
0
        private void createCategorie(string name, int ageMin, int ageMax, Categorie.Sexe sexe, int poidsMin, int poidsMax)
        {
            if (name != null && name != String.Empty)
            {
                _name = name;
            }
            else
            {
                logger.Error("createCategorie: Le nom ne peut être vide.");
                throw new System.ArgumentException("Le nom ne peut être vide.");
            }

            if (ageMin > 0 && ageMin <= ageMax)
            {
                _ageMin = ageMin;
                _ageMax = ageMax;
            }
            else
            {
                logger.Error("createCategorie: L'age minimal doit être > 0 et <= à l'age max.");
                throw new System.ArgumentException("L'age minimal doit être > 0 et <= à l'age max.");
            }

            if (poidsMin > 0 && poidsMin <= poidsMax)
            {
                _poidsMin = poidsMin;
                _poidsMax = poidsMax;
            }
            else
            {
                logger.Error("createCategorie: Le poids minimal doit être > 0 et <= au poids max.");
                throw new System.ArgumentException("Le poids minimal doit être > 0 et <= au poids max.");
            }

            _sexe = sexe;
            _init = true;

            logger.Info("createCategorie: nom = " + _name);
            logger.Info("createCategorie: age min =" + _ageMin);
            logger.Info("createCategorie: age max = " + _ageMax);
            logger.Info("createCategorie: poids min = " + _poidsMin);
            logger.Info("createCategorie: poids max = " + _poidsMax);
            logger.Info("createCategorie: sexe = " + _sexe.ToString());
        }
Exemplo n.º 29
0
            public override int GetHashCode()
            {
                int hashCode = -499023121;

                hashCode = hashCode * -1521134295 + Id.GetHashCode();
                hashCode = hashCode * -1521134295 + EqualityComparer <string> .Default.GetHashCode(Nom);

                hashCode = hashCode * -1521134295 + EqualityComparer <string> .Default.GetHashCode(Postnom);

                hashCode = hashCode * -1521134295 + EqualityComparer <string> .Default.GetHashCode(Prenom);

                hashCode = hashCode * -1521134295 + EqualityComparer <string> .Default.GetHashCode(Email);

                hashCode = hashCode * -1521134295 + EqualityComparer <string> .Default.GetHashCode(NomUtilisateur);

                hashCode = hashCode * -1521134295 + EqualityComparer <string> .Default.GetHashCode(MotDePasse);

                hashCode = hashCode * -1521134295 + Sexe.GetHashCode();
                hashCode = hashCode * -1521134295 + DataNascimento.GetHashCode();
                hashCode = hashCode * -1521134295 + NiveauAcces.GetHashCode();
                return(hashCode);
            }
Exemplo n.º 30
0
 private Character(string name, string description1,
                   float weight, int height, int age, string entryLine, string exitLine, string[] lines,
                   RuntimeAnimatorController hanging, Sprite sitDown, Sexe sexe, string ability, float cooldown,
                   Classe classe, string abilityDescription)
 {
     this.name               = name;
     this.description1       = description1;
     this.weight             = weight * WeightMultiplicator;
     this.height             = height;
     this.age                = age;
     this.entryLine          = entryLine;
     this.exitLine           = exitLine;
     this.lines              = lines;
     this.hanging            = hanging;
     this.sitDown            = sitDown;
     nbSpecials              = 0;
     this.sexe               = sexe;
     this.ability            = ability;
     this.cooldown           = cooldown;
     weapon                  = null;
     this.classe             = classe;
     this.abilityDescription = abilityDescription;
 }
        public IHttpActionResult PostSexe(Sexe sexe)
        {
            String mensaje = "";

            if (!ModelState.IsValid)
            {
                return(BadRequest(ModelState));
            }

            db.Sexe.Add(sexe);

            try
            {
                db.SaveChanges();
            }
            catch (DbUpdateConcurrencyException ex)
            {
                //Modificamos nuestra Exception con nuestro método de la clase estatica Utilidades para
                //tener feedback con el usuario y que este sepa cuál es el error;
                SqlException sqlException = (SqlException)ex.InnerException.InnerException;
                mensaje = Utilidades.Utilidades.MensajeError(sqlException);
            }
            return(BadRequest(mensaje));
        }
Exemplo n.º 32
0
        /// <summary>
        /// Récupère la ligne à écrire dans un fichier CSV qui représente l'objet actuel
        /// </summary>
        /// <returns></returns>
        public override string GetCSVline()
        {
            StringBuilder stringBuilder = new StringBuilder();

            stringBuilder.Append("Zombie")
            .Append(";")
            .Append(Matricule)
            .Append(";")
            .Append(Nom)
            .Append(";")
            .Append(Prenom)
            .Append(";")
            .Append(Sexe.ToString())
            .Append(";")
            .Append(Fonction)
            .Append(";")
            .Append(Cagnotte)
            .Append(";");
            if (Affectation != null)
            {
                stringBuilder.Append(Affectation.Identifiant).Append(";");
            }
            else if (AffectationAutre != null)
            {
                stringBuilder.Append(AffectationAutre).Append(";");
            }
            else
            {
                stringBuilder.Append("").Append(";");
            }
            stringBuilder.Append(teint.ToString())
            .Append(";")
            .Append(DegreDecomposition)
            .Append(";");
            return(stringBuilder.ToString());
        }
        public IHttpActionResult DeleteSexe(int id)
        {
            String mensaje = "";
            Sexe   sexe    = db.Sexe.Find(id);

            if (sexe == null)
            {
                return(NotFound());
            }

            db.Sexe.Remove(sexe);
            try
            {
                db.SaveChanges();
            }
            catch (DbUpdateConcurrencyException ex)
            {
                //Modificamos nuestra Exception con nuestro método de la clase estatica Utilidades para
                //tener feedback con el usuario y que este sepa cuál es el error;
                SqlException sqlException = (SqlException)ex.InnerException.InnerException;
                mensaje = Utilidades.Utilidades.MensajeError(sqlException);
            }
            return(BadRequest(mensaje));
        }
Exemplo n.º 34
-1
        public PersonnageJouable(GameWindow window, Sexe sexe)
            : base(40, 0, 1, new Arme(Arme.typearme.Poing), new Rectangle(window.ClientBounds.Width / 2 - 10, window.ClientBounds.Height / 2 - 40, 20, 10))
        {
            rectangle = new Rectangle(window.ClientBounds.Width / 2 - 10, window.ClientBounds.Height / 2 - 25, 40, 100);
            collisionhaut = new Rectangle(rectangle.X, rectangle.Y + 60, rectangle.Width, 40);
            collisionbas = new Rectangle(rectangle.X, rectangle.Y + rectangle.Height, rectangle.Width, 10);
            collisiongauche = new Rectangle(rectangle.X - 10, rectangle.Y + 60, 10, 40);
            collisiondroite = new Rectangle(rectangle.X + rectangle.Width, rectangle.Y + 60, 10, 40);
            this.window = window;
            this.sexe = sexe;

            #region Initialisation des booleens de deplacement
            dplcmthaut = false;
            dplcmtbas = false;
            dplcmtgauche = false;
            dplcmtdroite = false;
            versbas = false;
            versdroite = false;
            versgauche = false;
            vershaut = false;
            blocbas = false;
            blocdroit = false;
            blocgauche = false;
            blochaut = false;
            #endregion

            #region Initialisation des textures(Vers le bas)
            haut = false;
            bas = true;
            gauche = false;
            droite = false;
            compteurtext = 0;
            #endregion
        }