示例#1
0
文件: Row.cs 项目: thexa4/time-tetris
 public void InsertAfter(Row r)
 {
     Next.Prev = r;
     r.Prev = this;
     r.Next = Next;
     Next = r;
 }
示例#2
0
        /// <summary>
        /// Creates (introduces) a (full) row by set values
        /// </summary>
        /// <param name="y">Insert at</param>
        /// <param name="values">Values to insert</param>
        protected void CreateFullRow(int y, int[] values)
        {
            Row cur = this.Bottom;
            for (; y > 0; y--)
                cur = cur.Next;
            Row f = new Row(this.Width);
            f.Values = values;
            cur.InsertAfter(f);

            this.Top.Prev.Remove();
        }