Exemple #1
0
    public override PeopleINPC GetPeople(PeopleNPCType peopleType)
    {
        switch (peopleType)
        {
        case PeopleNPCType.Cityboy:
            PeopleINPC cityboy = new Cityboy();
            return(cityboy);

        case PeopleNPCType.Cowboy:
            PeopleINPC cowboy = new Cowboy();
            return(cowboy);

        case PeopleNPCType.Weenie:
            PeopleINPC weenie = new Weenie();
            return(weenie);
        }
        return(null);
    }
Exemple #2
0
 public abstract PeopleINPC GetPeople(PeopleNPCType humanType);
Exemple #3
0
 public override PeopleINPC GetPeople(PeopleNPCType humanType)
 {
     return(null);
 }