private void CreateRope() { Rope rope = new Rope(Board, X, Y, Y, false, Board.SelectedLayerIndex, true); Board.BoardItems.Ropes.Add(rope); BindItem(rope.FirstAnchor, new Xna.Point()); BindItem(rope.SecondAnchor, new Xna.Point()); }
public static UndoRedoAction RopeAdded(Rope rope) { return(new UndoRedoAction(null, UndoRedoType.RopeAdded, rope, null)); }
public RopeAnchor(Board board, int x, int y, Rope parentRope, bool beforeAdding) : base(board, x, y, beforeAdding) { this.parentRope = parentRope; }
public static UndoRedoAction RopeRemoved(Rope rope) { return new UndoRedoAction(null, UndoRedoType.RopeRemoved, rope, null); }