예제 #1
0
        static public int TriZombieDecompo(Personnel p1, Personnel p2)
        {
            int result = 0;

            if (p1 is Zombie && p2 is Zombie)
            {
                result = (p1 as Zombie).DegreDecomposition.CompareTo((p2 as Zombie).DegreDecomposition);
            }
            else if (p1 is Zombie)
            {
                result = 1;
            }
            else if (p2 is Zombie)
            {
                result = -1;
            }
            return(result);
        }
예제 #2
0
 public static bool OnlyZombie(Personnel zombie)
 {
     return(zombie is Zombie);
 }
예제 #3
0
 public static bool OnlyLoupGarou(Personnel loupGarou)
 {
     return(loupGarou is LoupGarou);
 }
예제 #4
0
 public static bool OnlyVampire(Personnel vampire)
 {
     return(vampire is Vampire);
 }
예제 #5
0
 public static bool OnlyFantome(Personnel fantome)
 {
     return(fantome is Fantome);
 }
예제 #6
0
 public static bool OnlyDemon(Personnel demon)
 {
     return(demon is Demon);
 }
예제 #7
0
 public static bool OnlyMonstre(Personnel monstre)
 {
     return(monstre is Monstre);
 }
예제 #8
0
 public static bool OnlySorcier(Personnel sorcier)
 {
     return(sorcier is Sorcier);
 }
예제 #9
0
 public static bool NoFilter(Personnel attraction)
 {
     return(true);
 }