Exemplo n.º 1
0
        public static ITerrain GetTerrain(TerrainType type, Game game)
        {
            ITerrain terrain = null;

            switch (type)
            {
                case TerrainType.Quadtree:
                    terrain = new Quadtree.Terrain(game);
                    break;
                case TerrainType.GeoMipMap:
                    terrain = new GeoMipMap.Terrain(game);
                    break;
                case TerrainType.ROAM:
                    terrain = new ROAM.Terrain(game);
                    break;
            }

            return terrain;
        }
Exemplo n.º 2
0
        public static ITerrain GetTerrain(TerrainType type, Game game)
        {
            ITerrain terrain = null;

            switch (type)
            {
            case TerrainType.Quadtree:
                terrain = new Quadtree.Terrain(game);
                break;

            case TerrainType.GeoMipMap:
                terrain = new GeoMipMap.Terrain(game);
                break;

            case TerrainType.ROAM:
                terrain = new ROAM.Terrain(game);
                break;
            }

            return(terrain);
        }