Beispiel #1
0
        /// <summary>
        /// Crée une nouvelle instance de Planet.
        /// </summary>
        public Planet()
        {
            LoadGraphics();
            // m_planet = new PlanetCell(Vector3.Zero, new Vector2(0, 0), 1.0f, new Vector3(40000, 40000, -20f), 45087027, false, 0);

            m_mainCell = new QuadTreeCell(Vector3.Zero, new Vector2(0, 0), 1.0f, new Vector3(40, 40, -0.020f), 45087027, 0, PlanetRadius);
            m_mainCell.Ressources.Add(new TerrainRessource(m_mainCell));
            //m_mainCell.Ressources.Add(new WaterRessource(m_mainCell));
            // m_mainCell.Ressources.Add(new AtmosphereRessource(m_mainCell));
            m_mainCell.InitializeRessources();

            m_atmosphere = new Objects.Atmosphere();
            m_ocean      = new Objects.Ocean();
        }
Beispiel #2
0
        /// <summary>
        /// Crée une nouvelle instance de Planet.
        /// </summary>
        public Planet()
        {
            LoadGraphics();
            // m_planet = new PlanetCell(Vector3.Zero, new Vector2(0, 0), 1.0f, new Vector3(40000, 40000, -20f), 45087027, false, 0);

            m_mainCell = new QuadTreeCell(Vector3.Zero, new Vector2(0, 0), 1.0f, new Vector3(40, 40, -0.020f), 45087027, 0, PlanetRadius);
            m_mainCell.Ressources.Add(new TerrainRessource(m_mainCell));
            //m_mainCell.Ressources.Add(new WaterRessource(m_mainCell));
            // m_mainCell.Ressources.Add(new AtmosphereRessource(m_mainCell));
            m_mainCell.InitializeRessources();

            m_atmosphere = new Objects.Atmosphere();
            m_ocean = new Objects.Ocean();
        }