Exemplo n.º 1
0
        private void BuyAk47()
        {
            CheckMoney(ak47value);

            if (checkedmoney == true)
            {
                player.Money -= ak47value;
                Ak47 ak = new Ak47();
                player.Weaponlist.Add(ak);
            }
        }
Exemplo n.º 2
0
 public Player(int x, int y)
 {
     Position.X = x;
        Position.Y = y;
        Velocity = new Vector2(0, 0);
        Pistol Pistol = new Pistol();
        Weaponlist.Add(Pistol);
        Ak47 AK = new Ak47();
        Weaponlist.Add(AK);
        ShowWeapon();
        Console.SetCursorPosition(0, 50);
        Console.Write("Armor: 0");
        Console.SetCursorPosition(0, 52);
        Console.Write("Money: 0");
        View = new Vector2(1, 0);
 }