Source

HI-2DRTSSGMDDPP1 / GameProgram / GameProgram / Star.cs

Full commit
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;

namespace GameProgram
{
  public class Star : VisableGameEntity
  {
    private Vector2 coordinatesWrtStarSystemOrigin = Vector2.Zero;
    private Vector2 velocityWrtStarSystemOrigin = Vector2.Zero;
    private StarSystem starSystem;

    public Star( StarSystem starSystem )
    {
      this.starSystem = starSystem;
      RelativeRadius = 1F;
    }

    public override Vector2 getAbsolutePosition()
    {
      return coordinatesWrtStarSystemOrigin; /* starSystem.getAbsolutePosition() +*/ 
    }

    public override List<VisableGameEntity> getChildVisableGameEntities()
    {
      return new List<VisableGameEntity>();
    }

    public override void update( GameTime gameTime )
    {
    }

  }
}