comparison game/Engine.java @ 65:dc936dba124e

Set game over-flag correctly, so that we reset everything after a game over situation has occured.
author Matti Hamalainen <ccr@tnsp.org>
date Fri, 25 Feb 2011 07:37:38 +0200
parents caf67c7e0814
children d406e14b870d
comparison
equal deleted inserted replaced
64:bca0112851d6 65:dc936dba124e
94 currPoint = 0; 94 currPoint = 0;
95 95
96 currPiece = null; 96 currPiece = null;
97 nextPiece = new Piece(PieceType.ACTIVE); 97 nextPiece = new Piece(PieceType.ACTIVE);
98 98
99 flagGameOver = false;
99 pieceFinishTurn(); 100 pieceFinishTurn();
100 flagGameOver = false;
101 gameScore = 0; 101 gameScore = 0;
102 } 102 }
103 103
104 public void paintBackPlate(Graphics2D g) 104 public void paintBackPlate(Graphics2D g)
105 { 105 {