/// <summary> /// Permet de modifier les valeurs d'un héros. /// </summary> /// <param name="argent"></param> /// <param name="classeHeros"></param> /// <param name="exp"></param> /// <param name="inventaire"></param> /// <param name="niveau"></param> /// <param name="StatDex"></param> /// <param name="StatInt"></param> /// <param name="StatStr"></param> /// <param name="StatVit"></param> public void ModifierHeros(int argent, cClasse classeHeros, int exp, cInventaireHeros inventaire, int niveau, int StatDex, int StatInt, int StatStr, int StatVit) { _hero.Argent = argent; _hero.Classe = classeHeros.AccederClass(); _hero.Experience = exp; // Still, the f**k ?_hero.Inventaire = inventaire; _hero.Niveau = niveau; _hero.StatDex = StatDex; _hero.StatInt = StatInt; _hero.StatStr = StatStr; _hero.StatVitalite = StatVit; }
/// <summary> /// Constructeur /// </summary> /// <param name="argent"></param> /// <param name="classeHero"></param> /// <param name="exp"></param> /// <param name="inventaire"></param> /// <param name="niveau"></param> /// <param name="StatDex"></param> /// <param name="StatInt"></param> /// <param name="StatStr"></param> /// <param name="StatVit"></param> /// <param name="x"></param> /// <param name="y"></param> public cHero(int argent, cClasse classeHero, int exp, cInventaireHeros inventaire, int niveau, int StatDex, int StatInt, int StatStr, int StatVit, int x, int y) // À modifier { _hero.Argent = argent; // _hero.Classe = classeHero.AccederClass(); _hero.Experience = exp; // _hero.InventaireHero = new List <InventaireHero>(); _hero.InventaireHero.Add(inventaire.AccederInventaire()); _hero.Niveau = niveau; // _hero.StatDex = StatDex; _hero.StatInt = StatInt; _hero.StatStr = StatStr; _hero.StatVitalite = StatVit; _hero.x = x; _hero.y = y; }