예제 #1
0
 public static void FirstRoundKind(ref MiddleEarthCitizen kind, ref MiddleEarthCitizen evil)
 {
     ((Orc)evil).OwnWolf.Power -= kind.Power;
     if (((Orc)evil).OwnWolf.Power < 0)
     {
         ((Orc)evil).Power        += ((Orc)evil).OwnWolf.Power;
         ((Orc)evil).OwnWolf.Power = 0;
     }
 }
예제 #2
0
 public static void ThirdRoundEvil(ref MiddleEarthCitizen kind, ref MiddleEarthCitizen evil)
 {
     if (kind is Wizard || kind is Rohhirim)
     {
         FirstRoundEvil(ref kind, ref evil);
     }
     else
     {
         kind.Power -= evil.Power;
     }
 }
예제 #3
0
 public static void ThirdRoundKind(ref MiddleEarthCitizen kind, ref MiddleEarthCitizen evil)
 {
     if (evil is Orc && ((Orc)evil).OwnWolf != null)
     {
         FirstRoundKind(ref kind, ref evil);
     }
     else
     {
         evil.Power -= kind.Power;
     }
 }
예제 #4
0
 public static void FirstRoundEvil(ref MiddleEarthCitizen kind, ref MiddleEarthCitizen evil)
 {
     if (kind is Rohhirim)
     {
         ((Rohhirim)kind).OwnHorse.Power -= evil.Power;
         if (((Rohhirim)kind).OwnHorse.Power < 0)
         {
             ((Rohhirim)kind).Power         += ((Rohhirim)kind).OwnHorse.Power;
             ((Rohhirim)kind).OwnHorse.Power = 0;
         }
     }
     else if (kind is Wizard)
     {
         ((Wizard)kind).OwnHorse.Power -= kind.Power;
         if (((Wizard)kind).OwnHorse.Power < 0)
         {
             ((Wizard)kind).Power         += ((Wizard)kind).OwnHorse.Power;
             ((Wizard)kind).OwnHorse.Power = 0;
         }
     }
 }
예제 #5
0
 public static void SecondRoundEvil(ref MiddleEarthCitizen kind, ref MiddleEarthCitizen evil)
 {
     kind.Power -= evil.Power;
 }
예제 #6
0
 public static void SecondRoundKind(ref MiddleEarthCitizen kind, ref MiddleEarthCitizen evil)
 {
     evil.Power -= kind.Power;
 }