public AniChild(Point p, Color c, Shape parent,double sd,double sv,double distance) : base(p, c,sv,sd) { this.distance = distance; if (parent != null) this.parent = parent; else throw new ArgumentException("Must supply a non-null parent"); }
public AniPoly(Point p, Color c,int sides,Shape parent,double sd,double sv=0) : base(p, c,sv,sd) { //Sets rules for what sides can be. Sets size to 25 if (sides >= 3) this.sides = sides; else throw new ArgumentException("Shape must have at least 3 sides"); this.size = 25; }
public AniBall(Point p, Color c, Shape parent, double sd, double sv, double distance) : base(p, c, parent,sd,sv,distance) { this.size = 20; }
public VWobbleBall(Color c, double distance, Shape parent, double sd, double sv = 0) : base(new Point(0, 0), c, parent, sd, sv, distance) { }
public OrbitBall(Color c,double distance, Shape parent, double sd ,double sv=0,double ratio=1) : base(new Point(0,0), c, parent, sd, sv, distance) { this.ratio = ratio; }
public FixedSquare(Point p,Color c,Shape parent=null) : base(p,c,parent) { this.size = 20; }
public AniHighlight(Color c, double distance, Shape parent, double sd) : base(new Point(0,0),c,parent,sd,0,distance) { this.size = parent.Size; this.temp_size = size; this.position = parent.Position; }
//Basic constructor. All derived shapes must have these parameters. public Shape(Point p, Color c,Shape parent=null) { this.position = p; this.color = c; this.parent = parent; }