Beispiel #1
0
        public Biont create(int code)
        {
            Biont biont = null;

            switch (code)
            {
                case 0:
                    biont = new CherryBlossom();
                    break;
                case 1:
                    biont = new PeachBlossom();
                    break;
                case 2:
                    biont = new PlumBlossom();
                    break;
            }
            return biont;
        }
Beispiel #2
0
        public Biont create(int code)
        {
            Biont biont = null;

            switch (code)
            {
            case 0:
                biont = new CherryBlossom();
                break;

            case 1:
                biont = new PeachBlossom();
                break;

            case 2:
                biont = new PlumBlossom();
                break;
            }
            return(biont);
        }