Пример #1
0
 public gameplay()
 {
     rand = new Random();
     grp.selectmapgraph("1", player);
     boss = new boss(15, 100, 5, 3);
     //Console.WriteLine(player.Level);
     //boss = new boss(15, 100, 5, 3);
     // posplayer = grp.PlayerPos;
     //  grp.drawMap(grp.Map1);
     //  Console.WriteLine();
     //  Console.WriteLine("============================================================================================");
     //  text.showStatus(player);
     //  grp.selectmapgraph("2");
 }
Пример #2
0
 public void fightmode(boss bos, Player player, bool action)
 {
     if (bos.Hp < (bos.Maxhp / 2) && action == true && coutheal < 2)
     {
         bos.heal();
         coutheal += 1;
     }
     else if (bos.Hp < (bos.Maxhp / 3) && action == true)
     {
         bos.strongatk(player);
     }
     else if (action == true)
     {
         bos.atk(player);
     }
 }