Ejemplo n.º 1
0
 public void Reset()
 {
     State          = 0;
     Id             = -1;
     OriginPosition = null;
     Time           = -1;
 }
Ejemplo n.º 2
0
 public Cell(Cell otherCell)
 {
     this.State           = otherCell.State;
     this.Id              = otherCell.Id;
     this.CurrentPosition = otherCell.CurrentPosition;
     this.OriginPosition  = otherCell.OriginPosition;
     this.Time            = otherCell.Time;
 }
Ejemplo n.º 3
0
 public Cell(int x, int y)
 {
     State           = 0;
     Id              = -1;
     CurrentPosition = new Point(x, y);
     OriginPosition  = null;
     Time            = -1;
     Direction       = new Point(0, 0);
 }
Ejemplo n.º 4
0
 internal void SetAsRectangleOrigin(double rotation, double firstSideRatio, double secondSideRatio)
 {
     OriginPosition = new RectangleNucleon(CurrentPosition, rotation, firstSideRatio, secondSideRatio);
 }
Ejemplo n.º 5
0
 internal void SetAsCircleOrigin()
 {
     OriginPosition = new CircleNucleon(CurrentPosition);
 }