changeset 44:698c6bcc4aec

Cleanups.
author Matti Hamalainen <ccr@tnsp.org>
date Tue, 22 Feb 2011 06:03:51 +0200
parents 9664bbb9d613
children 79185dababf2
files game/Engine.java
diffstat 1 files changed, 1 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/game/Engine.java	Tue Feb 22 06:01:14 2011 +0200
+++ b/game/Engine.java	Tue Feb 22 06:03:51 2011 +0200
@@ -254,16 +254,13 @@
                     if (currPiece != null)
                     {
                         // Hit center starting piece
-                        currPiece.setType(PieceType.LOCKED);
-                        currPiece.setConnectionState(currPiece.getRotatedPoint(currPoint), true);
-
                         flagGameOver = true;
                         System.out.print("GameOver!\n");
                         break;
                     }
                     else
                     {
-                        System.out.print("first piece\n");
+                        // Start piece as first piece means game is starting
                         pieceMoveTo(currPoint);
                         currPiece = new Piece(PieceType.ACTIVE);
                         board[currX][currY] = currPiece;