示例#1
0
        public void Bet(HoundEnum hound, Punter punter, int amount)
        {
            punter.betAmount = amount;
            switch (hound)
            {
            case HoundEnum.Pink:
                punter.betHound = PinkHound;
                break;

            case HoundEnum.Teal:
                punter.betHound = TealHound;
                break;

            case HoundEnum.Blue:
                punter.betHound = BlueHound;
                break;
            }
        }
示例#2
0
        private void btnBet_Click(object sender, EventArgs e)
        {
            HoundEnum hound = HoundEnum.Pink;

            switch (cbxHound.SelectedIndex)
            {
            case 0:
                hound = HoundEnum.Pink;
                break;

            case 1:
                hound = HoundEnum.Teal;
                break;

            case 2:
                hound = HoundEnum.Blue;
                break;
            }

            world.Bet(hound, selected, (int)nuAmount.Value);
            Draw();
        }