예제 #1
0
        public static GenericObject getGenericObject(String type)
        {
            GenericObject go;

            switch (type)
            {
                case "EDF":
                    {
                        go = new RandomBuilding();
                        break;
                    }

                case "ARV":
                    {
                        go = new Tree();
                        break;
                    }

                default:
                    {
                        go = new RandomBuilding();
                        break;
                    }
            }

            return go;
        }
예제 #2
0
        public static GenericObject getGenericObject(String type)
        {
            GenericObject go;

            switch (type)
            {
            case "EDF":
            {
                go = new RandomBuilding();
                break;
            }

            case "ARV":
            {
                go = new Tree();
                break;
            }

            default:
            {
                go = new RandomBuilding();
                break;
            }
            }

            return(go);
        }