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; }
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); }
public Indices(Game game, Terrain terrain) : base(game) { this.terrain = terrain; }