Ejemplo n.º 1
0
        private int GetWuerfeGesamt()
        {
            int summe = 0;

            if (wurf1 != null)
            {
                summe += wurf1.GetWurfGesamt();
            }
            if (wurf2 != null)
            {
                summe += wurf2.GetWurfGesamt();
            }
            if (wurf3 != null)
            {
                summe += wurf3.GetWurfGesamt();
            }
            return(summe);
        }
Ejemplo n.º 2
0
 public int AddWurf(Wurf w, int i)
 {
     anzahlWürfe++;
     würfe[i] = w;
     return(w.GetWurfGesamt());
 }