Exemplo n.º 1
0
        public Machine()
        {
            Roulletes = new List<Roullete>(5);
            for (int i = 0; i < Roulletes.Capacity; i++)
                Roulletes.Add(new Roullete());
            
            Random randomTime = new Random();
            Thread.Sleep(randomTime.Next(0, 100));
            _deck1 = new Deck(1, true);
            Thread.Sleep(randomTime.Next(0, 100));
            _deck2 = new Deck(1, true);
            Thread.Sleep(randomTime.Next(0, 100));
            _deck3 = new Deck(1, true);

            _payer = new Payer();
            _payer.OnPayPrice += new PriceHandler(_payer_OnPayPrice);
            PercentGain = 80;
            TotalCoinsReceived = 10000;

        }
Exemplo n.º 2
0
        public Machine()
        {
            Roulletes = new List <Roullete>(5);
            for (int i = 0; i < Roulletes.Capacity; i++)
            {
                Roulletes.Add(new Roullete());
            }

            Random randomTime = new Random();

            Thread.Sleep(randomTime.Next(0, 100));
            _deck1 = new Deck(1, true);
            Thread.Sleep(randomTime.Next(0, 100));
            _deck2 = new Deck(1, true);
            Thread.Sleep(randomTime.Next(0, 100));
            _deck3 = new Deck(1, true);

            _payer             = new Payer();
            _payer.OnPayPrice += new PriceHandler(_payer_OnPayPrice);
            PercentGain        = 80;
            TotalCoinsReceived = 10000;
        }