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