Esempio n. 1
0
File: Groupe.cs Progetto: Thino/Simu
 public Groupe(string nom, Plateau plateau, Isimon isi1, EntiteActive isi2)
     : base(nom, null, plateau)
 {
     _cptId++;
     _id = _cptId;
     _grp = new List<Isimon>();
     _grp.Add(isi1);
     _grp.Add((Isimon)isi2);
 }
Esempio n. 2
0
File: Isimon.cs Progetto: Thino/Simu
 public Isimon(IsiProfil i, Plateau plateau)
     : base(i.Nom, i.Img, plateau)
 {
     _experience = 0;
     _grpId = -1;
     _statut = IsiStatut.DISPO;
     _niveau = 1;
     _type = i.Type;
     _pvMax = _pv = i.Pv_max;
     _atk = i.Atk;
     _def = i.Def;
     _vit = i.Vit;
     if (PseudoAlea.GetInt(0, 1) == 0)
         _sexe = 'M';
     else
         _sexe = 'F';
 }
Esempio n. 3
0
 public Dresseur(String inNom, String inImage, Plateau plateau)
     : base(inNom, inImage,plateau)
 {
 }
Esempio n. 4
0
 private void InitPlateau()
 {
     for (int i = 0; i < init[1]; i++)
         gPlateau.RowDefinitions.Add(new RowDefinition());
     for (int i = 0; i < init[0]; i++)
         gPlateau.ColumnDefinitions.Add(new ColumnDefinition());
     _plateau = new Plateau(init, gPlateau);
     foreach (Entite e in _plateau.GetActeurs())
         if( e is Isimon )
             e.Image.MouseUp += new MouseButtonEventHandler(Isimon_MouseUp);
 }
Esempio n. 5
0
 public EntiteActive(String inNom, String inImage, Plateau plateau)
     : base(inNom, inImage)
 {
     _plateau = plateau;
 }