public bool CanRemoveMotivation(BarkingMotivation motivation)
 {
     switch (motivation){
         case BarkingMotivation.People:
         case BarkingMotivation.OtherDogs:
             return true;
         case BarkingMotivation.Ghost:
             return false;
     }
     return false;
 }
Example #2
0
        public bool CanRemoveMotivation(BarkingMotivation motivation)
        {
            switch (motivation)
            {
            case BarkingMotivation.People:
            case BarkingMotivation.OtherDogs:
                return(true);

            case BarkingMotivation.Ghost:
                return(false);
            }
            return(false);
        }
 public DogBarking(BarkingMotivation? motivation)
 {
     Motivation = motivation;
 }