Exemplo n.º 1
0
 /// <summary>
 ///     checks if this instance gives influence for the given animal class
 /// </summary>
 /// <param name="classDef">The class definition.</param>
 /// <returns></returns>
 /// <exception cref="ArgumentNullException">classDef</exception>
 public bool GivesInfluence([NotNull] AnimalClassDef classDef)
 {
     if (classDef == null)
     {
         throw new ArgumentNullException(nameof(classDef));
     }
     if (classInfluence == null)
     {
         return(false);
     }
     return(classDef.Contains(classInfluence));
 }