public static void SetAroundCells(this MooreLifeGameCell centerCell, MooreLifeGameCell rightCell, MooreLifeGameCell lowerRightCell, MooreLifeGameCell lowerCell, MooreLifeGameCell lowerLeftCell) { centerCell.JointRight(rightCell); centerCell.JointLowerRight(lowerRightCell); centerCell.JointLower(lowerCell); centerCell.JointLowerLeft(lowerLeftCell); }
public static void JointLower(this MooreLifeGameCell upperCell, MooreLifeGameCell lowerCell) { upperCell.Lower = lowerCell; lowerCell.Upper = upperCell; }
public static void JointLowerLeft(this MooreLifeGameCell upperRightCell, MooreLifeGameCell lowerLeftCell) { upperRightCell.LowerLeft = lowerLeftCell; lowerLeftCell.UpperRight = upperRightCell; }
public static void JointRight(this MooreLifeGameCell leftCell, MooreLifeGameCell rightCell) { leftCell.Right = rightCell; rightCell.Left = leftCell; }