Exemple #1
0
 public static bool HasType_Known(this IPBEPokemonKnownTypes pkmn, PBEType type)
 {
     if (type >= PBEType.MAX)
     {
         throw new ArgumentOutOfRangeException(nameof(type));
     }
     return(pkmn.KnownType1 == type || pkmn.KnownType2 == type);
 }
Exemple #2
0
 public static double GetEffectiveness_Known(PBEType attackingType, IPBEPokemonKnownTypes defendingTypes, bool ignoreGhost = false, bool ignoreDark = false)
 {
     if (defendingTypes == null)
     {
         throw new ArgumentNullException(nameof(defendingTypes));
     }
     return(GetEffectiveness(attackingType, defendingTypes.KnownType1, defendingTypes.KnownType2, ignoreGhost: ignoreGhost, ignoreDark: ignoreDark));
 }
Exemple #3
0
 public static bool ReceivesSTAB_Known(this IPBEPokemonKnownTypes pkmn, PBEType type)
 {
     return(type != PBEType.None && HasType_Known(pkmn, type));
 }