} (e == 4) y=5; (e == 5) y=4;; 4: (e == 0) {z6 (); z3 (); y=0;} (e == 6) {z6 (); y=3;} (e == 5 && x2 ()) {z6 ();} if (e == 5) {z5 ();}; 5: (e == 4 && x3 () && x0 ()) {z6 (); z4 (); y=1;} if (e == 4 && x3 ()) {z6 (); z3 (); y=0;} if (e == 4) {z5 ();};}
# ifdef LOGGING (y!=y_old)
{char s [30]; _t t; (& t); (s, 30, «% X», gmtime (& t)); (log," [% s ] => Осередок (% d,% d) зі стану " % s " перейшла в
стан
" % s ". n », s, posx +1, posy +1, aCell_states [y_old], aCell_states [y]);}
# endif ();} DrawState () const
{SelectObject (hCompatibleDC, bmp [State ()] [NumPic ()]); (hDC, posx * CELL_SIZE, TOP_HEIGHT + posy * CELL_SIZE, _SIZE +1, CELL_SIZE +1,, Color ( ) * CELL_SIZE, 0, SRCCOPY);}: x0 () const
{return PreColor ()!=- 1;} x1 () const
{return (NumPic () == N1-1);} x2 () const
{return (NumPic () == N2-1);} x3 () const
{return (NumPic () == N3-1);} z0 () const
{Color ()=ball_color;} z1 () const
{Color ()=random (7);} z2 () const
{PreColor ()=Color (); Color ()=ball_color;} z3 () const
{Color ()=0;} z4 () const
{Color ()=PreColor (); PreColor ()=- 1;} z5 () const
{+ + NumPic ();} z6 () const
{NumPic ()=0;}}; ball; click_ball; :: list appear_list; :: list explode_list; :: stack path; :: list :: iterator itr;ALines(int);z0();z1_1();z1_2();z1_3();z2_1();z2_2();z2_3();z2_4();z3_1();z3_2();z4_1();z4_2();xk0();xk1();xk2();x0();x1();x2();x3();x4();x5();FindEmptyCell(cell &); GenerateAppearList (); CheckAppearList (); FindPath (const cell &, const cell &); CheckLines (const cell &); Valid (const cell &);GameOver();NewGame();DrawTime();DrawScore();DrawTop();CheckCustomParameters();GetInfo();WriteInfo();MyRegisterClass(HINSTANCE);InitInstance(HINSTANCE,int);CALLBACK WndProc (HWND, UINT, WPARAM, LPARAM); CALLBACK About (HWND, UINT, WPARAM, LPARAM); CALLBACK Custom (HWND, UINT, WPARAM, LPARAM); CALLBACK BestResults (HWND, UINT, WPARAM,); CALLBACK GetName (HWND , UINT, WPARAM, LPARAM); APIENTRY WinMain (HINSTANCE hInstance, hPrevInstance, lpCmdLine, nCmdShow)
{MSG msg; hAccelTable; ();=hInstance; (hInstance); (! InitInstance (hInstance, nCmdShow))
{return FALSE;}=LoadAccelerators (hInstance, (LPCTSTR) IDC_LINES); (GetMessage (& msg, NULL, 0, 0))
{if (! TranslateAccelerator (msg.hwnd, hAccelTable, & msg))
{TranslateMessage (& msg); (& msg);}} msg.wParam;} MyRegisterClass (HINSTANCE hInstance)
{WNDCLASSEX wcex;. cbSize=sizeof (WNDCLASSEX);. style=CS_HREDRAW | CS_VREDRAW;. lpfnWndProc=(WNDPROC) WndProc;. cbClsExtra=0;. cbWndExtra=0;. hInstance=hInstance; . hIcon=LoadIcon (hInst, (LPCTSTR) IDI_LINES);. hCursor=LoadCursor (NULL, IDC_ARROW);. hbrBackground=(HBRUSH) (COLOR_WINDOW +1);. lpszMenuName=(LPCSTR) IDC_LINES;. lpszClassName=szWindowClass;. hIconSm =LoadIcon (wcex.hInstance, (LPCTSTR) IDI_SMALL); RegisterClassEx (& wcex);} InitInstance (HINSTANCE hInstance, int nC...