Beispiel #1
0
        public Block(Terrain terrain, Point position, Point offset)
            : base(terrain.Game)
        {
            this.terrain = terrain;

            Offset = offset;
            Position = position;
        }
        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;
        }
Beispiel #3
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);
        }
Beispiel #4
0
 public Indices(Game game, Terrain terrain)
     : base(game)
 {
     this.terrain = terrain;
 }