Esempio n. 1
0
        public string KillAll(Human human, Sundew sundew, Sunflower sunflower, Nut nut) //vot
        {
            human.life     = false;
            sundew.life    = false;
            sunflower.life = false;
            nut.life       = false;

            s = "ты убил всех... и что дальше, тебе просто нечего делать...\n";
            return(s);
        }
Esempio n. 2
0
        void HP(Human human, Sundew sundew, Sunflower sunflower, Nut nut)
        {
            human.HP     -= 5;
            sundew.HP    -= 5;
            sunflower.HP -= 5;
            nut.HP       -= 5;
            ShowHP();

            if (human.HP <= 0 || !human.life)
            {
                human.life = false;
                pictureBox4.Dispose();
                label6.Dispose();
                human.HumanGraphics.HP = 0;
            }

            if (sundew.HP <= 0 || !sundew.life)
            {
                pictureBox1.Dispose();
                label2.Dispose();
                sundew.life = false;
                sundew.SundewGraphics.HP = 0;
            }

            if (nut.HP <= 0 || !nut.life)
            {
                pictureBox2.Dispose();
                label3.Dispose();
                label5.Dispose();
                nut.life           = false;
                nut.NutGraphics.hp = 0;
            }

            if (sunflower.HP <= 0 || !sunflower.life)
            {
                pictureBox3.Dispose();
                label4.Dispose();
                sunflower.life = false;
                sunflower.FlowerGraphics.hp = 0;
            }
        }
Esempio n. 3
0
 //их можно объеденить, но пока что сделаем так)
 public string HealNut(Nut nut, Sun sun)
 {
     if (sun.light)
     {
         nut.defend += 11;
         nut.hp     += 6;
         hp         += 5;
         s          += AreLife();
         s          += "Подлечить толстого всегла приятно (нет)((Help!))\n";
         return(s);
     }
     else
     {
         nut.defend += 4;
         nut.hp     += 4;
         hp         -= 5;
         s          += AreLife();
         s          += "Все ради тостенького!\n";
         return(s);
     }
 }