Esempio n. 1
0
        private void Window_Loaded(object sender, RoutedEventArgs e)
        {
            EtatMajor em = new EtatMajor();

            cbType.Items.Add(new Gobelin(em, p.Nom, p.equipe));
            cbType.Items.Add(new Sorcier(em, p.Nom, p.equipe));
            cbType.Items.Add(new Moldu(em, p.Nom, p.equipe));
            cbType.Items.Add(new Mangemort(em, p.Nom, p.equipe));

            if (p.type == TypePersonnage.Archer)
            {
                cbType.SelectedIndex = 0;
            }
            else if (p.type == TypePersonnage.Chevalier)
            {
                cbType.SelectedIndex = 1;
            }
            else if (p.type == TypePersonnage.Fantassin)
            {
                cbType.SelectedIndex = 3;
            }
            else if (p.type == TypePersonnage.Princesse)
            {
                cbType.SelectedIndex = 2;
            }

            txtNom.Text = p.Nom;
        }
Esempio n. 2
0
 //-----------------------------------------------------------------------------
 protected Personnage(EtatMajor em, string sonNom, TypePersonnage tp, TypeEquipe eq)
 {
     Nom = sonNom;
     ComportementCombat       = null;
     ComportementEmettreUnSon = null;
     type       = tp;
     Historique = new List <Position>();
     Image      = Properties.Resources.archer;
     equipe     = eq;
     etat       = Etat.vivant;
     this.em    = em;
 }
Esempio n. 3
0
 //-----------------------------------------------------------------------------
 protected Personnage(EtatMajor em, string sonNom, TypePersonnage tp, TypeEquipe eq)
 {
     Nom = sonNom;
     ComportementCombat = null;
     ComportementEmettreUnSon = null;
     type = tp;
     Historique = new List<Position>();
     Image = Properties.Resources.archer;
     equipe = eq;
     etat = Etat.vivant;
     this.em = em;
 }
        private void Window_Loaded(object sender, RoutedEventArgs e)
        {
            EtatMajor em = new EtatMajor();
            cbType.Items.Add(new Gobelin(em, p.Nom, p.equipe));
            cbType.Items.Add(new Sorcier(em, p.Nom, p.equipe));
            cbType.Items.Add(new Moldu(em, p.Nom, p.equipe));
            cbType.Items.Add(new Mangemort(em, p.Nom, p.equipe));

            if (p.type == TypePersonnage.Archer)
                cbType.SelectedIndex = 0;
            else if (p.type == TypePersonnage.Chevalier)
                cbType.SelectedIndex = 1;
            else if (p.type == TypePersonnage.Fantassin)
                cbType.SelectedIndex = 3;
            else if (p.type == TypePersonnage.Princesse)
                cbType.SelectedIndex = 2;

            txtNom.Text = p.Nom;
        }
Esempio n. 5
0
 public EtatMajor(EtatMajor unParent)
 {
     Parent = unParent;
 }
Esempio n. 6
0
 public EtatMajor(EtatMajor unParent)
 {
     Parent = unParent;
 }