Example #1
0
        protected Monstres GenererMonstre()
        {
            De       d3 = new De(3);
            int      x  = d3.Lance();
            Monstres m  = (x == 1) ? new Loup() : ((x == 2) ? (Monstres) new Orque() : new Dragonnet());

            m.LaMort += LaMortAction;
            return(m);
        }
Example #2
0
 public IEnumerator GetEnumerator()
 {
     return(Monstres.GetEnumerator());
 }
Example #3
0
 public void Depouiller(Monstres m)
 {
     this.Cuir += (m is ICuir) ? ((ICuir)m).Cuir : 0;
     this.Or   += (m is IOr) ? ((IOr)m).Or : 0;
 }