Пример #1
0
        private static void MeetTheWalker(GrandMom baba, Walker walker)
        {
            DialogResult result = MessageBox.Show("Want to buy a bag?", "PoliticianCrusade", MessageBoxButtons.YesNo);

            if (result == DialogResult.Yes)
            {
                if (baba.Money.Quantity >= baba.Bag.Price)
                {
                    if (baba.Bag.RemainingPower < 100)
                    {
                        baba.Bag.RemainingPower = 100;
                        baba.Money.Quantity    -= baba.Bag.Price;
                    }
                    else
                    {
                        MessageBox.Show("You have full bag power");
                    }
                }
                else
                {
                    MessageBox.Show("You don't have enough money");
                }
            }
            baba.ClearImg();
            baba.CoordY += 3;
            baba.RenderImg();
            Console.SetCursorPosition(64, 4);
            walker.RenderImg();
        }
Пример #2
0
        private static void MeetTheBGMom(GrandMom baba, BGMom mom)
        {
            DialogResult result = MessageBox.Show("Want to buy a gun?", "PoliticianCrusade", MessageBoxButtons.YesNo);

            if (result == DialogResult.Yes)
            {
                if (baba.Money.Quantity >= baba.Gun.Price)
                {
                    if (true)
                    {
                        baba.Gun.RemainingPower = 100;
                        baba.Money.Quantity    -= baba.Gun.Price;
                    }
                    else
                    {
                        MessageBox.Show("You have full gun power");
                    }
                }
                else
                {
                    MessageBox.Show("You don't have enough money");
                }
            }
            baba.ClearImg();
            baba.CoordY += 3;
            baba.RenderImg();
            Console.SetCursorPosition(30, 4);
            mom.RenderImg();
        }
Пример #3
0
        private static void MeetTheWalker(GrandMom baba, Walker walker)
        {
            DialogResult result = MessageBox.Show("Want to buy a bag?", "PoliticianCrusade", MessageBoxButtons.YesNo);

            if (result == DialogResult.Yes)
            {
                if (baba.Money.Quantity >= baba.Bag.Price)
                {
                    if (baba.Bag.RemainingPower < 100)
                    {
                        baba.Bag.RemainingPower = 100;
                        baba.Money.Quantity -= baba.Bag.Price;
                    }
                    else
                    {
                        MessageBox.Show("You have full bag power");
                    }
                }
                else
                {
                    MessageBox.Show("You don't have enough money");
                }
            }
            baba.ClearImg();
            baba.CoordY += 3;
            baba.RenderImg();
            Console.SetCursorPosition(64, 4);
            walker.RenderImg();
        }
Пример #4
0
        private static void MeetTheBGMom(GrandMom baba, BGMom mom)
        {
            DialogResult result = MessageBox.Show("Want to buy a gun?", "PoliticianCrusade", MessageBoxButtons.YesNo);

            if (result == DialogResult.Yes)
            {
                if (baba.Money.Quantity >= baba.Gun.Price)
                {
                    if (true)
                    {
                        baba.Gun.RemainingPower = 100;
                        baba.Money.Quantity -= baba.Gun.Price;
                    }
                    else
                    {
                        MessageBox.Show("You have full gun power");
                    }
                }
                else
                {
                    MessageBox.Show("You don't have enough money");
                }
            }
            baba.ClearImg();
            baba.CoordY += 3;
            baba.RenderImg();
            Console.SetCursorPosition(30, 4);
            mom.RenderImg();
        }