Exemple #1
0
 public void Reset()
 {
     State          = 0;
     Id             = -1;
     OriginPosition = null;
     Time           = -1;
 }
Exemple #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;
 }
Exemple #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);
 }
Exemple #4
0
 internal void SetAsRectangleOrigin(double rotation, double firstSideRatio, double secondSideRatio)
 {
     OriginPosition = new RectangleNucleon(CurrentPosition, rotation, firstSideRatio, secondSideRatio);
 }
Exemple #5
0
 internal void SetAsCircleOrigin()
 {
     OriginPosition = new CircleNucleon(CurrentPosition);
 }