예제 #1
0
        public void CreateNewTileRow()
        {
            TileRow newTileRow = new TileRow(this.rowIndex, 5, this.TileWidth, this.TileHeight);

            this.rowIndex++;
            this.GameBoard.Add(newTileRow);
        }
예제 #2
0
        private void MoveSingleTileRow(TileRow row)
        {
            row.MoveDown(this.Model.Speed);

            if (!this.TileRowIsInBoardRange(row))
            {
                this.Model.RemoveTileRow(row);
            }
        }
예제 #3
0
 public void RemoveTileRow(TileRow tileRow)
 {
     this.GameBoard.Remove(tileRow);
 }
예제 #4
0
 private bool TileRowIsInBoardRange(TileRow row)
 {
     return(this.View.GetBoardHeight() + this.Model.TileHeight > row.Y);
 }