示例#1
0
 bool FightOver()
 {
     if (CurHp[0] == 0)
     {
         FightOverEvent e = new FightOverEvent()
         {
             WinParty = 1,
             LoseParty = 0
         };
         ProcessFightEvent(EnumFightEvent.Over, e);
         return true;
     }
     else if (CurHp[1] == 0)
     {
         FightOverEvent e = new FightOverEvent()
         {
             WinParty = 0,
             LoseParty = 1
         };
         ProcessFightEvent(EnumFightEvent.Over, e);
         return true;
     }
     return false;
 }
示例#2
0
文件: NormalFight.cs 项目: sgww/cozy
 bool FightOver()
 {
     if (CurHp[0] == 0)
     {
         FightOverEvent e = new FightOverEvent()
         {
             WinParty  = 1,
             LoseParty = 0
         };
         ProcessFightEvent(EnumFightEvent.Over, e);
         return(true);
     }
     else if (CurHp[1] == 0)
     {
         FightOverEvent e = new FightOverEvent()
         {
             WinParty  = 0,
             LoseParty = 1
         };
         ProcessFightEvent(EnumFightEvent.Over, e);
         return(true);
     }
     return(false);
 }