Пример #1
0
 public Ball(Robot startLink, Color color, Robot r2, Robot r3)
 {
     this.linked = startLink;
     this.color  = color;
     this.isFree = false;
     this.linked.linkBall(this);
     this.matrix   = new ScoreMatrix(startLink, r2, r3);
     this.location = new Vector3(startLink.getLocation().X, startLink.getLocation().Y, 0);
 }
Пример #2
0
 public Ball(Vector2 startPosition, Color color, Robot r1, Robot r2, Robot r3)
 {
     this.linked         = null;
     this.color          = color;
     this.isFree         = true;
     this.location       = new Vector3(startPosition.X, startPosition.Y, 0);
     this.launchPosition = location;
     this.launchVelocity = Vector3.Zero;
     this.matrix         = new ScoreMatrix(r1, r2, r3);
 }