package cn.xia.solar;
import java.awt.Color;
import java.awt.Graphics;
import java.awt.Image;
import cn.xia.util.GameUtil;
public class Planet extends Star{
//除了图片坐标 行星沿着某个椭圆运行:长轴,短轴,速度,角度; 绕着某个Star.
double longAxis;
double shortAxis;
double speed;
double degree;
Star center;
boolean satellite;
public Planet(Star center,String imgpath, double longAxis, double shortAxis, double speed,boolean satellite) {
this(center, imgpath, longAxis, shortAxis, speed);
this.satellite = satellite;
}
public Planet(Star center,String imgpath, double longAxis, double shortAxis, double speed) {
super(GameUtil.getImage(imgpath));
this.center = center;
this.x=center.x+longAxis;
this.y=center.y;
this.longAxis = longAxis;
thi