Esempio n. 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));
 }
Esempio n. 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();
 }
Esempio n. 3
0
 public ToolTipLine(Board board, MapleDot firstDot, MapleDot secondDot)
     : base(board, firstDot, secondDot)
 {
 }
Esempio n. 4
0
 public RopeLine(Board board, MapleDot firstDot)
     : base(board, firstDot)
 {
     xBind = true;
 }
Esempio n. 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);
        }
Esempio n. 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);
 }
Esempio n. 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);
 }
Esempio n. 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;
 }
Esempio n. 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;
 }
Esempio n. 10
0
 public FootholdLine(Board board, MapleDot firstDot)
     : base(board, firstDot)
 {
     _cantThrough = null;
     _forbidFallDown = null;
     _piece = null;
     _force = null;
 }
Esempio n. 11
0
 public ToolTipLine(Board board, MapleDot firstDot, MapleDot secondDot)
     : base(board, firstDot, secondDot)
 {
 }
Esempio n. 12
0
 public RopeLine(Board board, MapleDot firstDot)
     : base(board, firstDot)
 {
     xBind = true;
 }
Esempio n. 13
0
 public static UndoRedoAction LineAdded(MapleLine line, MapleDot a, MapleDot b)
 {
     return(new UndoRedoAction(null, UndoRedoType.LineAdded, a, b, line));
 }
Esempio n. 14
0
 public MiscLine(Board board, MapleDot firstDot, MapleDot secondDot)
     : base(board, firstDot, secondDot)
 {
 }
Esempio n. 15
0
 public static UndoRedoAction LineRemoved(MapleLine line, MapleDot a, MapleDot b)
 {
     return new UndoRedoAction(null, UndoRedoType.LineRemoved, a, b, line);
 }
Esempio n. 16
0
 public MiscLine(Board board, MapleDot firstDot, MapleDot secondDot)
     : base(board, firstDot, secondDot)
 {
 }