private bool _uf; // Decides whether you can climb over the end of the rope (usually true) // According to koolk it stands for "Upper Foothold" public Rope(Board board, int x, int y1, int y2, bool ladder, int page, bool uf) { this.board = board; this._page = page; this._ladder = ladder; this._uf = uf; this.firstAnchor = new RopeAnchor(board, x, y1, this); this.secondAnchor = new RopeAnchor(board, x, y2, this); this.line = new RopeLine(board, firstAnchor, secondAnchor); Create(); }
public Rope(Board board, SerializationForm json) { this.board = board; _page = json.page; _ladder = json.ladder; _uf = json.uf; _ladderSetByUser = json.ladderuser; firstAnchor = new RopeAnchor(board, json.x, json.y1, this); secondAnchor = new RopeAnchor(board, json.x, json.y2, this); line = new RopeLine(board, firstAnchor, secondAnchor); }
private bool _uf; // Decides whether you can climb over the end of the rope (usually true) #endregion Fields #region Constructors // According to koolk it stands for "Upper Foothold" public Rope(Board board, int x, int y1, int y2, bool ladder, int page, bool uf) { this.board = board; this._page = page; this._ladder = ladder; this._uf = uf; this.firstAnchor = new RopeAnchor(board, x, y1, this); this.secondAnchor = new RopeAnchor(board, x, y2, this); this.line = new RopeLine(board, firstAnchor, secondAnchor); Create(); }