Beispiel #1
0
 private static void createFHProps(WzSubProperty fh, MapleDot FirstDot, MapleDot SecondDot)
 {
     fh.AddProperty(new WzCompressedIntProperty("x1", FirstDot.X));
     fh.AddProperty(new WzCompressedIntProperty("x2", SecondDot.X));
     fh.AddProperty(new WzCompressedIntProperty("y1", FirstDot.Y));
     fh.AddProperty(new WzCompressedIntProperty("y2", SecondDot.Y));
 }
Beispiel #2
0
 private static FootholdAnchor GetOtherPoint(FootholdLine source, MapleDot point)
 {
     //This was ripped straight from HC v1.7 and edited to work with v2 -DeathRight
     if (((FootholdAnchor)source.FirstDot).X != point.X || ((FootholdAnchor)source.FirstDot).Y != point.Y)
         return (FootholdAnchor)source.FirstDot;
     else if (((FootholdAnchor)source.SecondDot).X != point.X || ((FootholdAnchor)source.SecondDot).Y != point.Y)
         return (FootholdAnchor)source.SecondDot;
     else
         throw new Exception();
 }
Beispiel #3
0
 public ToolTipLine(Board board, MapleDot firstDot, MapleDot secondDot)
     : base(board, firstDot, secondDot)
 {
 }
Beispiel #4
0
 public RopeLine(Board board, MapleDot firstDot)
     : base(board, firstDot)
 {
     xBind = true;
 }
Beispiel #5
0
        public static FootholdLine CreateCustomFootholdLine(Board board, MapleDot firstDot, MapleDot secondDot)
        {
            FootholdLine result = new FootholdLine();

            result.Board     = board;
            result.FirstDot  = firstDot;
            result.SecondDot = secondDot;
            return(result);
        }
Beispiel #6
0
 public void ConnectSecondDot(MapleDot secondDot)
 {
     if (!beforeConnecting) return;
     this.secondDot.connectedLines.Clear();
     this.secondDot = secondDot;
     this.secondDot.connectedLines.Add(this);
     secondDot.PointMoved += new MapleDot.OnPointMovedDelegate(OnSecondDotMoved);
 }
Beispiel #7
0
 public MapleLine(Board board, MapleDot firstDot, MapleDot secondDot)
 {
     this.board = board;
     this.firstDot = firstDot;
     this.firstDot.connectedLines.Add(this);
     this.secondDot = secondDot;
     this.secondDot.connectedLines.Add(this);
     this.beforeConnecting = false;
     firstDot.PointMoved += new MapleDot.OnPointMovedDelegate(OnFirstDotMoved);
     secondDot.PointMoved += new MapleDot.OnPointMovedDelegate(OnSecondDotMoved);
 }
Beispiel #8
0
 public static FootholdLine CreateCustomFootholdLine(Board board, MapleDot firstDot, MapleDot secondDot)
 {
     FootholdLine result = new FootholdLine();
     result.Board = board;
     result.FirstDot = firstDot;
     result.SecondDot = secondDot;
     return result;
 }
Beispiel #9
0
 public FootholdLine(Board board, MapleDot firstDot, MapleBool forbidFallDown, MapleBool cantThrough, int? piece, int? force)
     : base(board, firstDot)
 {
     this._cantThrough = cantThrough;
     this._forbidFallDown = forbidFallDown;
     this._piece = piece;
     this._force = force;
 }
Beispiel #10
0
 public FootholdLine(Board board, MapleDot firstDot)
     : base(board, firstDot)
 {
     _cantThrough = null;
     _forbidFallDown = null;
     _piece = null;
     _force = null;
 }
Beispiel #11
0
 public ToolTipLine(Board board, MapleDot firstDot, MapleDot secondDot)
     : base(board, firstDot, secondDot)
 {
 }
Beispiel #12
0
 public RopeLine(Board board, MapleDot firstDot)
     : base(board, firstDot)
 {
     xBind = true;
 }
Beispiel #13
0
 public static UndoRedoAction LineAdded(MapleLine line, MapleDot a, MapleDot b)
 {
     return(new UndoRedoAction(null, UndoRedoType.LineAdded, a, b, line));
 }
Beispiel #14
0
 public MiscLine(Board board, MapleDot firstDot, MapleDot secondDot)
     : base(board, firstDot, secondDot)
 {
 }
Beispiel #15
0
 public static UndoRedoAction LineRemoved(MapleLine line, MapleDot a, MapleDot b)
 {
     return new UndoRedoAction(null, UndoRedoType.LineRemoved, a, b, line);
 }
Beispiel #16
0
 public MiscLine(Board board, MapleDot firstDot, MapleDot secondDot)
     : base(board, firstDot, secondDot)
 {
 }