Ejemplo n.º 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);
        }
Ejemplo n.º 2
0
 public static bool OnlyZombie(Personnel zombie)
 {
     return(zombie is Zombie);
 }
Ejemplo n.º 3
0
 public static bool OnlyLoupGarou(Personnel loupGarou)
 {
     return(loupGarou is LoupGarou);
 }
Ejemplo n.º 4
0
 public static bool OnlyVampire(Personnel vampire)
 {
     return(vampire is Vampire);
 }
Ejemplo n.º 5
0
 public static bool OnlyFantome(Personnel fantome)
 {
     return(fantome is Fantome);
 }
Ejemplo n.º 6
0
 public static bool OnlyDemon(Personnel demon)
 {
     return(demon is Demon);
 }
Ejemplo n.º 7
0
 public static bool OnlyMonstre(Personnel monstre)
 {
     return(monstre is Monstre);
 }
Ejemplo n.º 8
0
 public static bool OnlySorcier(Personnel sorcier)
 {
     return(sorcier is Sorcier);
 }
Ejemplo n.º 9
0
 public static bool NoFilter(Personnel attraction)
 {
     return(true);
 }