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

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

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