Ejemplo n.º 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");
 }
Ejemplo n.º 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;
 }
Ejemplo n.º 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;
 }
Ejemplo n.º 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)
 {
 }
Ejemplo n.º 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;
 }
Ejemplo n.º 6
0
 public FixedSquare(Point p,Color c,Shape parent=null)
     : base(p,c,parent)
 {
     this.size = 20;
 }
Ejemplo n.º 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;
 }
Ejemplo n.º 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;
 }