public FootholdLine(Board board, MapleDot firstDot) : base(board, firstDot) { this._cantThrough = null; this._forbidFallDown = null; this._piece = null; this._force = null; }
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 MapleLine(Board board, MapleDot firstDot) { this.board = board; this.firstDot = firstDot; this.firstDot.connectedLines.Add(this); this.secondDot = board.Mouse; this.secondDot.connectedLines.Add(this); this.beforeConnecting = true; firstDot.PointMoved += OnFirstDotMoved; }
public MapleRectangle(Board board, SerializationForm json) : base(board, 0, 0, 0) { // Make dots a = CreateDot(json.x1, json.y1); b = CreateDot(json.x2, json.y1); c = CreateDot(json.x2, json.y2); d = CreateDot(json.x1, json.y2); // Make lines ab = CreateLine(a, b); bc = CreateLine(b, c); cd = CreateLine(c, d); da = CreateLine(d, a); ab.yBind = true; bc.xBind = true; cd.yBind = true; da.xBind = true; }
public MapleEmptyRectangle(Board board, XNA.Rectangle rect) { this.board = board; lock (board.ParentControl) { a = CreateDot(rect.Left, rect.Top); b = CreateDot(rect.Right, rect.Top); c = CreateDot(rect.Right, rect.Bottom); d = CreateDot(rect.Left, rect.Bottom); PlaceDots(); // Make lines ab = CreateLine(a, b); bc = CreateLine(b, c); cd = CreateLine(c, d); da = CreateLine(d, a); ab.yBind = true; bc.xBind = true; cd.yBind = true; da.xBind = true; } }
public RopeLine(Board board, MapleDot firstDot) : base(board, firstDot) { xBind = true; }
public MinimapLine(Board board, MapleDot firstDot, MapleDot secondDot) : base(board, firstDot, secondDot) { }
public override MapleLine CreateLine(MapleDot a, MapleDot b) { return new ToolTipLine(board, a, b); }
public ToolTipLine(Board board, MapleDot firstDot, MapleDot secondDot) : base(board, firstDot, secondDot) { }
public static UndoRedoAction LineAdded(MapleLine line, MapleDot a, MapleDot b) { return new UndoRedoAction(null, UndoRedoType.LineAdded, a, b, line); }
public static UndoRedoAction LineAdded(MapleLine line, MapleDot a, MapleDot b) { return(new UndoRedoAction(null, UndoRedoType.LineAdded, a, b, line)); }
public MapleDot GetOtherDot(MapleDot x) { if (firstDot == x) return secondDot; else if (secondDot == x) return firstDot; else throw new Exception("GetOtherDot: line is not properly connected"); }
public abstract MapleLine CreateLine(MapleDot a, MapleDot b);
public override MapleLine CreateLine(MapleDot a, MapleDot b) { return(new MiscLine(board, a, b)); }
public override MapleLine CreateLine(MapleDot a, MapleDot b) { return new MinimapLine(board, a, b); }
public MiscLine(Board board, MapleDot firstDot, MapleDot secondDot) : base(board, firstDot, secondDot) { }
public void ConnectSecondDot(MapleDot secondDot) { if (!beforeConnecting) return; this.secondDot.connectedLines.Clear(); this.secondDot = secondDot; this.secondDot.connectedLines.Add(this); secondDot.PointMoved += OnSecondDotMoved; }