Ejemplo n.º 1
0
        public void Track()
        {
            OBJPERSONS[0] = new person()
            {
                CARPITURE = car1,
                CARSTART  = racePB.Left,
                CARRACE   = racePB.Width - car1.Width,
                RANDOM    = Rand
            };
            OBJPERSONS[1] = new person()
            {
                CARPITURE = car2,
                CARSTART  = racePB.Left,
                CARRACE   = racePB.Width - car2.Width,
                RANDOM    = Rand
            };
            OBJPERSONS[2] = new person()
            {
                CARPITURE = car3,
                CARSTART  = racePB.Left,
                CARRACE   = racePB.Width - car3.Width,
                RANDOM    = Rand
            };
            OBJPERSONS[3] = new person()
            {
                CARPITURE = car4,
                CARSTART  = racePB.Left,
                CARRACE   = racePB.Width - car4.Width,
                RANDOM    = Rand
            };


            OBJCARS[0] = new RACERS("JHON", 50, JHONRABS, JHONLBS);
            OBJCARS[1] = new RACERS("LIND", 50, LINDRBS, LINDLBS);
            OBJCARS[2] = new RACERS("ZACK", 50, ZACKRBS, ZACKLBS);

            foreach (var racer in OBJCARS)
            {
                racer.BETAMOUNT(0, 0);
                racer.LABELSUPDATESCAR();
            }
            minimumBetLabel.Text = "Minimum bet is " + 1 + " bucks";
            betplaceud.Minimum   = 1;
        }
Ejemplo n.º 2
0
 public BETTING(RACERS bets)
 {
     PLAYERBETS = bets;
 }