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)); }
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(); }
public ToolTipLine(Board board, MapleDot firstDot, MapleDot secondDot) : base(board, firstDot, secondDot) { }
public RopeLine(Board board, MapleDot firstDot) : base(board, firstDot) { xBind = true; }
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); }
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); }
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); }
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; }
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; }
public FootholdLine(Board board, MapleDot firstDot) : base(board, firstDot) { _cantThrough = null; _forbidFallDown = null; _piece = null; _force = null; }
public ToolTipLine(Board board, MapleDot firstDot, MapleDot secondDot) : base(board, firstDot, secondDot) { }
public RopeLine(Board board, MapleDot firstDot) : base(board, firstDot) { xBind = true; }
public static UndoRedoAction LineAdded(MapleLine line, MapleDot a, MapleDot b) { return(new UndoRedoAction(null, UndoRedoType.LineAdded, a, b, line)); }
public MiscLine(Board board, MapleDot firstDot, MapleDot secondDot) : base(board, firstDot, secondDot) { }
public static UndoRedoAction LineRemoved(MapleLine line, MapleDot a, MapleDot b) { return new UndoRedoAction(null, UndoRedoType.LineRemoved, a, b, line); }
public MiscLine(Board board, MapleDot firstDot, MapleDot secondDot) : base(board, firstDot, secondDot) { }