Beispiel #1
0
 public static IPaduin CreatPaduin(PaduinType type)
 {
     switch (type)
     {
         case PaduinType.Karnotman:
             return new Karnobatman();
         case PaduinType.CountSevgin:
             return new CountSevgin();
         case PaduinType.SashoFett:
             return new SashoFett();
             case PaduinType.WightJan:
             return new WightJan();
         default:
             throw new ArgumentException();
     }
 }
Beispiel #2
0
        public static IPaduin CreatPaduin(PaduinType type)
        {
            switch (type)
            {
            case PaduinType.Karnotman:
                return(new Karnobatman());

            case PaduinType.CountSevgin:
                return(new CountSevgin());

            case PaduinType.SashoFett:
                return(new SashoFett());

            case PaduinType.WightJan:
                return(new WightJan());

            default:
                throw new ArgumentException();
            }
        }