Ejemplo n.º 1
0
        public PlanetSystem CreatePlanetSystem(double period, double orbitRadius, double orbitPosition)
        {
            PlanetSystem ps = new PlanetSystem(this);
            ps.Movement = new CircularMovementStrategy(period, orbitRadius);
            ps.Animate(orbitPosition);

            planetSystems.Add(ps);

            return ps;
        }
Ejemplo n.º 2
0
            public PlanetSystem CreatePlanetSystem(double period, double orbitRadius, double orbitPosition)
            {
                PlanetSystem ps = new PlanetSystem(this, orbitRadius, orbitPosition);

                ps.Movement = new CircularMovementStrategy(period, orbitRadius);
                ps.Animate(orbitPosition);

                planetSystems.Add(ps);

                return(ps);
            }
Ejemplo n.º 3
0
        public PlanetSystem CreatePlanetSystem(double period, double orbitRadius, double orbitPosition)
        {
            PlanetSystem ps = new PlanetSystem(this);
            ps.Movement = new CircularMovementStrategy(period, orbitRadius);
            ps.Animate(orbitPosition);

            planetSystems.Add(ps);

            OnChanged(); // Вызываем обработку события изменения

            return ps;
        }
Ejemplo n.º 4
0
        public PlanetSystem CreatePlanetSystem(double period, double orbitRadius, double orbitPosition)
        {
            PlanetSystem ps = new PlanetSystem(this);

            ps.Movement = new CircularMovementStrategy(period, orbitRadius);
            ps.Animate(orbitPosition);

            planetSystems.Add(ps);

            OnChanged(); // Вызываем обработку события изменения

            return(ps);
        }