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); }
public IEnumerator GetEnumerator() { return(Monstres.GetEnumerator()); }
public void Depouiller(Monstres m) { this.Cuir += (m is ICuir) ? ((ICuir)m).Cuir : 0; this.Or += (m is IOr) ? ((IOr)m).Or : 0; }