예제 #1
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;
 }
예제 #2
0
 public Cell(int x, int y)
 {
     State           = 0;
     Id              = -1;
     CurrentPosition = new Point(x, y);
     OriginPosition  = null;
     Time            = -1;
 }
예제 #3
0
 internal void SetAsRectangleOrigin(double rotation, double firstSideRatio, double secondSideRatio)
 {
     OriginPosition = new RectangleNucleon(CurrentPosition, rotation, firstSideRatio, secondSideRatio);
 }
예제 #4
0
 internal void SetAsCircleOrigin()
 {
     OriginPosition = new CircleNucleon(CurrentPosition);
 }