comparison game/Engine.java @ 39:e682b623aea9

Cosmetics.
author Matti Hamalainen <ccr@tnsp.org>
date Fri, 18 Feb 2011 15:47:15 +0200
parents 3dc5ae9f1c80
children a69103644bf6
comparison
equal deleted inserted replaced
38:736de7b28701 39:e682b623aea9
203 curr.setActiveConnection(point); 203 curr.setActiveConnection(point);
204 } 204 }
205 205
206 // Get next piece 206 // Get next piece
207 point = curr.getConnection(point); 207 point = curr.getConnection(point);
208 int npoint = -1;
209 switch (point) 208 switch (point)
210 { 209 {
211 case 0: y--; npoint = 5; break; 210 case 0: y--; point = 5; break;
212 case 1: y--; npoint = 4; break; 211 case 1: y--; point = 4; break;
213 212
214 case 2: x++; npoint = 7; break; 213 case 2: x++; point = 7; break;
215 case 3: x++; npoint = 6; break; 214 case 3: x++; point = 6; break;
216 215
217 case 4: y++; npoint = 1; break; 216 case 4: y++; point = 1; break;
218 case 5: y++; npoint = 0; break; 217 case 5: y++; point = 0; break;
219 218
220 case 6: x--; npoint = 3; break; 219 case 6: x--; point = 3; break;
221 case 7: x--; npoint = 2; break; 220 case 7: x--; point = 2; break;
222 } 221 }
223 point = npoint;
224 } 222 }
225 } 223 }
226 else 224 else
227 { 225 {
228 // Outside of the board 226 // Outside of the board