Exemple #1
0
    public override AnimalINPC GetAnimal(AnimalNPCType animalType)
    {
        switch (animalType)
        {
        case AnimalNPCType.Horse:
            AnimalINPC horse = new Horse();
            return(horse);

        case AnimalNPCType.Bull:
            AnimalINPC bull = new Bull();
            return(bull);

        case AnimalNPCType.WienerDog:
            AnimalINPC wienerDog = new WienerDog();
            return(wienerDog);
        }
        return(null);
    }
Exemple #2
0
 public override AnimalINPC GetAnimal(AnimalNPCType animalType)
 {
     return(null);
 }
Exemple #3
0
 public abstract AnimalINPC GetAnimal(AnimalNPCType animalType);