[0] [1]=TRUE; _bNextFigur [0] [2]=TRUE; _bNextFigur [1] [0]=TRUE; _bNextFigur [1] [2]=TRUE;
break; Zleft: _bNextFigur [0] [0]=TRUE; _bNextFigur [1] [0]=TRUE; _bNextFigur [1] [1]=TRUE; _bNextFigur [1] [2]=TRUE; _bNextFigur [2] [2]=TRUE ;; Zright: _bNextFigur [0] [0]=TRUE; _bNextFigur [1] [0]=TRUE; _bNextFigur [1] [1]=TRUE; _bNextFigur [1] [2]=TRUE; _bNextFigur [2] [0]=TRUE;
break; corner: _bNextFigur [0] [0]=TRUE; _bNextFigur [0] [1]=TRUE; _bNextFigur [1] [1]=TRUE;
break; Corner: _bNextFigur [0] [0]=TRUE; _bNextFigur [1] [0]=TRUE; _bNextFigur [2] [0]=TRUE; _bNextFigur [2] [1]=TRUE; _bNextFigur [2] [2]=TRUE;
break; point: _bNextFigur [0] [0]=TRUE;
break; Wfigur: _bNextFigur [0] [0]=TRUE; _bNextFigur [1] [0]=TRUE; _bNextFigur [1] [1]=TRUE; _bNextFigur [2] [1]=TRUE; _bNextFigur [2] [2]=TRUE;
break;
} _ iColor=(rand ()% 100) +100;
}
//-----------------------------------------------------------------------------------------DrawStok()
{dc=GetDC(g_hStok);;(g_hStok,amp;rectWndStok);x=(rectWndStok.right-rectWndStok.left)/HORIZONTAL_LINE;y=(rectWndStok.bottom-rectWndStok.top)/VERTICAL_LINE;br;(int c1=0; c1 lt; HORIZONTAL_LINE; c1 ++) (int c2=0; c2 lt; VERTICAL_LINE; c2 ++)
{=g_iStok[c1][c2];hBrash=CreateSolidBrush(RGB(br,br,br));hOldBrach=SelectBrush(dc,hBrash);(dc,c1*x,c2*y,(c1*x)+x,(c2*y)+y);(SelectBrush(dc,hOldBrach));
} (g_hFigure, dc); (g_hStok, amp; rectWndStok);
}
//-----------------------------------------------------------------------------------------Speed(int g_iScore)
{(SPEED - ((g_iInc + 1) * 15));
}
//-----------------------------------------------------------------------------------------DrawFigure()
{dc=GetDC(g_hFigure);;(g_hFigure,amp;rectWndFigure);hOldBrach;=CreateSolidBrush(RGB(100,100,100));=GetStockBrush(BLACK_BRUSH);x=(rectWndFigure.right-rectWndFigure.left)/4;y=(rectWndFigure.bottom-rectWndFigure.top)/4;(int c1=0; c1 lt; 4; c1 ++) (int c2=0; c2 lt; 4; c2 ++)
{(g_bNextFigur [c1] [c2])
{=SelectBrush(dc,hBrash);(dc,c1*x,c2*y,((c1+1)*x)+x,(c2*y)+y);=SelectBrush(dc,hOldBrach);
}
{=SelectBrush(dc,hBlackBrash);(dc,c1*x,c2*y,((c1+1)*x)+x,(c2*y)+y);(dc,hOldBrach);
}
} (SelectBrush (dc, hOldBrach)); (g_hFigure, dc); (g_hFigure, amp; rectWndFigure);
}
//-----------------------------------------------------------------------------------------()
{(); ();
}
//-----------------------------------------------------------------------------------------ClearFigure(BOOL * iArray)
{(int c1=0; c1 lt; 4 * 4; c1 ++)
* (iArray + c1)=FALSE;
}
//-----------------------------------------------------------------------------------------CopyFigure(BOOL * iSrcArray, BOOL * iDstArray)
{(int c1=0; c1 lt; 4 * 4; c1 ++)
* (iDstArray + c1)=* (iSrcArray + c1);
}
//-----------------------------------------------------------------------------------------NextFigure()
{( amp; g_bNextFigur [0] [0], amp; g_bFigure [0] [0]); ( amp; g_bNextFigur [0] [0]);
_ iFigure=g_iNextFigure;
_ iNextFigure=rand ()% FIGUR_COUNT; (g_iNextFigure);
_pPozFigure.x=HORIZONTAL_LINE/2;_pPozFigure.y=0;(g_hwnd,(UINT)NULL,Speed(g_iScore),NULL);
}
//-----------------------------------------------------------------------------------------NewGame()
{(GetTickCount ()% 100); _iScore=0; ( amp; g_bNextFigur [0] [0]); _ iNextFigure=rand ()% FIGUR_COUNT; (g_iNextFigure);
(int c1=0; c1 lt; HORIZONTAL_LINE; c1 ++) (int c2=0; c2 lt; VERTICAL_LINE; c2 ++) _ iStok [c1] [c2]=30; ();
Repaint ();
}
//-----------------------------------------------------------------------------------------IsImpact()// Перевіряємо зіткнення з дном і лінією
{imp=0; y; (int c1=0; c1 lt; 4; c1 ++)
{(int c2=0; c2 lt; 4; c2 ++)
{(g_bFigure [c1] [c2])
{= c2;=2; (c2 + g_pPozFi...