Esempio n. 1
0
 private bool _uf;  //deciding if 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, false);
     this.secondAnchor = new RopeAnchor(board, x, y2, this, false);
     this.line         = new RopeLine(board, firstAnchor, secondAnchor);
     Create();
 }
Esempio n. 2
0
        private bool _uf; //deciding if 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, false);
            this.secondAnchor = new RopeAnchor(board, x, y2, this, false);
            this.line = new RopeLine(board, firstAnchor, secondAnchor);
            Create();
        }