Exemplo n.º 1
0
 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());
 }
Exemplo n.º 2
0
 public static UndoRedoAction RopeAdded(Rope rope)
 {
     return(new UndoRedoAction(null, UndoRedoType.RopeAdded, rope, null));
 }
Exemplo n.º 3
0
 public RopeAnchor(Board board, int x, int y, Rope parentRope, bool beforeAdding)
     : base(board, x, y, beforeAdding)
 {
     this.parentRope = parentRope;
 }
Exemplo n.º 4
0
 public static UndoRedoAction RopeRemoved(Rope rope)
 {
     return new UndoRedoAction(null, UndoRedoType.RopeRemoved, rope, null);
 }