Exemplo n.º 1
0
 public int EndMatch(FightUnit _OtherUnit)
 {
     if (HP <= 0)
     {
         Console.WriteLine("\n\n" + _OtherUnit.Name + "의 공격으로 사망했습니다....");
         Console.WriteLine("GAME OVER");
         Console.ReadKey();
         return(0);
     }
     else if (_OtherUnit.HP <= 0)
     {
         Console.WriteLine("\n\n" + _OtherUnit.Name + "을(를) 쓰려트렸습니다!");
         Console.WriteLine("전리품으로 " + _OtherUnit.Inventory.GS_Item.GS_Name + "을(를) 획득했습니다!");
         Inventory.Insert(_OtherUnit.Inventory.GS_Item);
         Console.ReadKey();
         return(1);
     }
     else
     {
         return(2);
     }
 }
Exemplo n.º 2
0
 public void Damage(FightUnit _OtherUnit)
 {
     _OtherUnit.HP -= AT;
     Console.Write("\n" + Name + "의 공격으로 " + _OtherUnit.Name + "의 체력이 " + AT + "감소했습니다!");
 }
Exemplo n.º 3
0
 public void RivalAlert(FightUnit _OtherUnit)
 {
     Console.Clear();
     Console.WriteLine(_OtherUnit.GS_Name + "이(가) 나타났다!!");
     Console.ReadKey();
 }