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; }
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); }
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; }
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); }