Lines Matching refs:tx1

4 void tama_set( tx1 , ty1 , tx2 , ty2 , color1 , color2)   in tama_set()  argument
5 int tx1 , tx2 , color1 , color2 , ty1 , ty2 ; in tama_set()
8 …if( ty1 >= 0 && ( net ? (int)(ty1/4)<19 : (int)(ty1/4)<12) ) map[ tx1 ][ (int)(ty1 / 4) ] = color1…
15 void tama_moveside( int *tx1 , int *ty1 , int *tx2 , int *ty2 ,int dir , int color1 , int color2 ) in tama_moveside() argument
20 atti = attitu( *tx1 , *ty1 , *tx2 , *ty2 ) ; in tama_moveside()
30 if ( !vmap( *tx1 - 1 , *ty1 ) && *tx1 > 0 ) in tama_moveside()
34 if ( !vmap( *tx1 - 1 , *ty1 ) && *tx1 > 0 ) in tama_moveside()
46 if ( !vmap( *tx1 + 1 , *ty2 ) && *tx1 < 7 ) in tama_moveside()
54 if ( !vmap( *tx1 + 1 , *ty1 ) && *tx1 < 7 ) in tama_moveside()
63 (*tx1) += x ; in tama_moveside()
66 if ( x ) MoveWindow ( color1 , color2 , *tx1 , *ty1 , *tx2 , *ty2 , True , in tama_moveside()
67 *tx1 - x , *ty1 , *tx2 - x , *ty2 , back ) ; in tama_moveside()
72 void tama_roll( int *tx1 , int *ty1 , int *tx2 , int *ty2 , int dir , int color1 , int color2 ) in tama_roll() argument
76 atti = attitu( *tx1 , *ty1 , *tx2 ,*ty2 ) ; in tama_roll()
82 rolling( tx1 , ty1 , tx2 ,ty2 , 1 , -1 , color1 , color2 ) ; in tama_roll()
85 rolling( tx1 , ty1 , tx2 ,ty2 , - 1 , 1 , color1 , color2 ) ; in tama_roll()
88 rolling( tx1 , ty1 , tx2 ,ty2 , -1 , -1 , color1 , color2 ) ; in tama_roll()
91 rolling( tx1 , ty1 , tx2 ,ty2 , 1 , 1 , color1 , color2 ) ; in tama_roll()
98 rolling( tx1 , ty1 , tx2 ,ty2 , 1 , 1 , color1 , color2 ) ; in tama_roll()
101 rolling( tx1 , ty1 , tx2 ,ty2 , -1 , -1 , color1 , color2 ) ; in tama_roll()
104 rolling( tx1 , ty1 , tx2 ,ty2 , 1 , -1 , color1 , color2 ) ; in tama_roll()
107 rolling( tx1 , ty1 , tx2 ,ty2 , -1 , 1 , color1 , color2 ) ; in tama_roll()
113 void rolling( int *tx1 , int *ty1 ,int *tx2 , int *ty2 ,int ax ,int ay , int color1 , int color2 ) in rolling() argument
122 MoveWindow( color1 , color2 , *tx1 , *ty1 , *tx2 , *ty2 , in rolling()
123 True , *tx1 , *ty1 , *tx2 - ax, *ty2 - ay * 4, back ) ; in rolling()
127 atti = attitu( *tx1 , *ty1 , *tx2 , *ty2 ) ; in rolling()
130 if (( *tx1 == 0 && ax < 0 && atti != RIGHT ) || in rolling()
131 ( *tx1 == 7 && ax > 0 && atti != LEFT )){ in rolling()
132 if ( !vmap( *tx1 - ax , *ty1 )) { in rolling()
133 (*tx1) -= ax ; in rolling()
135 MoveWindow( color1 , color2 , *tx1 , *ty1 , *tx2 , *ty2 , in rolling()
136 True , *tx1 + ax , *ty1 , *tx2 , *ty2 - ay * 4, back) ; in rolling()
147 MoveWindow( color1 , color2 , *tx1 , *ty1 , *tx2 , *ty2 , in rolling()
148 True , *tx1 , *ty1 - 4 , *tx2 - ax, *ty2 , back ) ; in rolling()
155 if( !vmap( *tx1 - ax , *ty1 )) { in rolling()
156 (*tx1) -= ax ; in rolling()
158 MoveWindow( color1 , color2 , *tx1 , *ty1 , *tx2 , *ty2 , in rolling()
159 True , *tx1 + ax , *ty1 , *tx2 , *ty2 - ay * 4 , back ) ; in rolling()
169 int tama_fall( int *tx1 , int *ty1 , int *tx2 , int *ty2 , int sw , int color1 , int color2 ) in tama_fall() argument
173 atti = attitu( *tx1 , *ty1 , *tx2 , *ty2 ) ; in tama_fall()
175 if ( *ty1 -1 >= 0 && !vmap( *tx1 , *ty1 - 1 ) && in tama_fall()
180 MoveWindow( color1 , color2 , *tx1 , *ty1 , *tx2 , *ty2 , in tama_fall()
181 True , *tx1 , *ty1 + 1 , *tx2 , *ty2 + 1 , back ) ; in tama_fall()
186 MoveWindow( color1 , color2 , *tx1 , *ty1 , *tx2 , *ty2 , in tama_fall()
187 True , *tx1 , *ty1 + 1 , *tx2 , *ty2 + 1 , back ) ; in tama_fall()
199 game_end(*tx1,*ty1) ; in tama_fall()
203 if ( !vmap( *tx1 , *ty1 - 1 ) && !vmap( *tx2 , *ty2 - 1 )) { in tama_fall()
204 game_end(*tx1,*ty1) ; in tama_fall()
208 if ( vmap( *tx1 , *ty1 - 1 )) in tama_fall()
211 MoveWindow ( color1 , color2 , *tx1 , *ty1 , *tx2 , *ty2 , True , in tama_fall()
212 *tx1 , *ty1 , *tx2 , *ty2 + 1 , back ) ; in tama_fall()
217 while ( !vmap( *tx1 , *ty1 - 1 ) && ( *ty1 - 1 ) >= 0 ) { in tama_fall()
219 MoveWindow ( color1 , color2 , *tx1 , *ty1 , *tx2 , *ty2 , True , in tama_fall()
220 *tx1 , *ty1 + 1 , *tx2 , *ty2 , back ) ; in tama_fall()
223 game_end(*tx1,*ty1); in tama_fall()
344 int MoveWindow( int color1 , int color2 , int tx1 , int ty1 , int tx2 , int ty2 ,int sw , int xx1 ,… in MoveWindow() argument
366 gcval.ts_x_origin = gcval.clip_x_origin = tx1 * 40 ; in MoveWindow()
371 XFillRectangle( dpy , win , gc3 , tx1 * 40 , y1 * 10 , 40 , 40 ) ; in MoveWindow()