Exemple #1
0
        public Joueur(string[] champs)
        {
            Matricule = champs[0];
            Prenom    = champs[1];
            Nom       = champs[2];
            Usager    = champs[3];

            EquipeJoueur = null;

            LstStats = new Statistiques();

            // TEST DONNÉES STATIQUE
            // TODO : Class association Partie-Joueur-Champion

            string fullFilePath;

            Champion = "Alistar";

            fullFilePath = @"http://ddragon.leagueoflegends.com/cdn/5.2.1/img/champion/" + Champion + ".png";
            BitmapImage bitmap = new BitmapImage();

            bitmap.BeginInit();
            bitmap.UriSource = new Uri(fullFilePath, UriKind.Absolute);
            bitmap.EndInit();

            Img = bitmap;
        }
Exemple #2
0
        public Equipe(string nom)
        {
            Nom = nom;

            LstJoueurs = new ObservableCollection <Joueur>();

            EstElimine = false;
            LstStats   = new Statistiques();
        }
Exemple #3
0
 public PartieEquipe(Equipe e)
 {
     Equipe   = e;
     LstStats = new Statistiques();
     LstStats.PropertyChanged += PropertyChanged;
 }