Example #1
0
 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");
 }
Example #2
0
 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;
 }
Example #3
0
 public AniBall(Point p, Color c, Shape parent, double sd, double sv, double distance)
     : base(p, c, parent,sd,sv,distance)
 {
     this.size = 20;
 }
Example #4
0
 public VWobbleBall(Color c, double distance, Shape parent, double sd, double sv = 0)
     : base(new Point(0, 0), c, parent, sd, sv, distance)
 {
 }
Example #5
0
 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;
 }
Example #6
0
 public FixedSquare(Point p,Color c,Shape parent=null)
     : base(p,c,parent)
 {
     this.size = 20;
 }
Example #7
0
 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;
 }
Example #8
0
 //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;
 }