Exemple #1
0
 private PopSim2.Size NewSize(PopSim2.Size MomsSize, PopSim2.Size DadsSize)
 {
     PopSim2.Size s;
     int t;
     if (MomsSize == PopSim2.Size.Small && DadsSize == PopSim2.Size.Small)
     {
         s = PopSim2.Size.Small;
     }
     else if (MomsSize == PopSim2.Size.Large || DadsSize == PopSim2.Size.Large)
     {
         t = r.Next(0, 1);
         if (t == 0)
         {
             s = MomsSize;
         }
         else
         {
             s = DadsSize;
         }
     }
     else
     {
         s = PopSim2.Size.Medium;
     }
     return s;
 }
Exemple #2
0
 public int Size(PopSim2.Size s)
 {
     return mySizePrefs[(int)s];
 }