예제 #1
0
        // Overloaded Constructor
        public SuperBallPopper(int popperMaxCapacity)
        {
            BingoBallSet    = new BallSet();
            _poppedBall     = new Ball();
            PoppersCapacity = popperMaxCapacity;

            // Num of Balls for a Standard Game
            if (PoppersCapacity == 75)
            {
                BingoBallSet.PopulateStandardBingoBallSet();
                BingoBallSet.SetName = ("Standard Bingo Game Popper Created with " + BingoBallSet.BallSetSize + " balls.\n");
            }
            else // MaxCapacity !75
            {
                for (var i = 1; i < popperMaxCapacity; i++)
                {
                    var b = new Ball(i);
                    BingoBallSet.AddBall(b);
                }
                BingoBallSet.SetName = ("Custom Bingo Game Popper Created with " + BingoBallSet.BallSetSize + " balls\n");
            }
        }
 // Overloaded Constructor
 public SuperBallPopper(int popperMaxCapacity)
 {
     BingoBallSet = new BallSet();
     _poppedBall = new Ball();
     PoppersCapacity = popperMaxCapacity;
     
     // Num of Balls for a Standard Game
     if (PoppersCapacity == 75)
     {
         BingoBallSet.PopulateStandardBingoBallSet();
         BingoBallSet.SetName = ("Standard Bingo Game Popper Created with " + BingoBallSet.BallSetSize + " balls.\n");
     }
     else // MaxCapacity !75
     {
         for (var i = 1; i < popperMaxCapacity; i++)
         {
             var b = new Ball(i);
             BingoBallSet.AddBall(b);
         }
         BingoBallSet.SetName = ("Custom Bingo Game Popper Created with " + BingoBallSet.BallSetSize + " balls\n");
     }
 }
예제 #3
0
 // Constructors
 public SuperBallPopper()
 {
     BingoBallSet    = new BallSet();
     _poppedBall     = new Ball();
     PoppersCapacity = 0;
 }
 // Constructors
 public SuperBallPopper()
 {
     BingoBallSet = new BallSet();
     _poppedBall = new Ball();
     PoppersCapacity = 0;
 }