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