public void Move() { switch (Direction) { case DirectionType.North: MoveNorth(); break; case DirectionType.East: MoveEast(); break; case DirectionType.South: MoveSouth(); break; case DirectionType.West: MoveWest(); break; } var temp = CustomRectangle.Clone() as CustomRectangle; AllMoves.Add(temp); }
public Coordinate() { CustomRectangle = new CustomRectangle(); var temp = CustomRectangle.Clone() as CustomRectangle; AllMoves.Add(temp); }