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); } }
public void RemoveTileRow(TileRow tileRow) { this.GameBoard.Remove(tileRow); }
private bool TileRowIsInBoardRange(TileRow row) { return(this.View.GetBoardHeight() + this.Model.TileHeight > row.Y); }