Пример #1
0
        public FallingBlocksGame(Color[] colors, FallingBlocksForm.UpdateTimer updateTimer, FallingBlocksForm.UpdateScore updateScore, FallingBlocksForm.UpdatePaint updatePaint)
        {
            if (PieceList != null)
            {
                PieceList.Clear();
            }
            PieceList = new List <FallingBlocksPiece>();

            this.pieceSize   = ColumnHeight;
            this.colors      = colors;
            this.updateTimer = updateTimer;
            this.updatePaint = updatePaint;
            this.updateScore = updateScore;
            occupiedMap      = OccupiedMap.Instance;
            occupiedMap.Init();
            score = new Score(OccupiedMap.Instance);
        }
Пример #2
0
 public Score(OccupiedMap occupiedMap)
 {
     this.occupiedMap = occupiedMap;
 }