예제 #1
0
파일: Mouse.cs 프로젝트: hanistory/hasuite
 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());
 }
예제 #2
0
 public static UndoRedoAction RopeAdded(Rope rope)
 {
     return(new UndoRedoAction(null, UndoRedoType.RopeAdded, rope, null));
 }
예제 #3
0
 public RopeAnchor(Board board, int x, int y, Rope parentRope, bool beforeAdding)
     : base(board, x, y, beforeAdding)
 {
     this.parentRope = parentRope;
 }
예제 #4
0
 public static UndoRedoAction RopeRemoved(Rope rope)
 {
     return new UndoRedoAction(null, UndoRedoType.RopeRemoved, rope, null);
 }