Курсовая работа: Java-гра Тетріс
public void figureMoveDown(){
t.setDelay(DELAY[level]/20);
}
public void figureRotate(){
if (fig.canRotate(stakan)& gameState==PLAY)
fig.rotate();
}
public void gamePauseResume(){
if (gameState==PLAY) {
gameState = PAUSE;
}
else
if (gameState==PAUSE) {
gameState = PLAY;
}
}
public void actionPerformed(ActionEvent e) {
if (gameState != PLAY) {
return;
}
int bonus;
if (fig.canDown(stakan)) {
fig.moveDown();
} else {
if ((bonus = stakan.acceptFigure(fig)) < 0) {
stopGame();
}
if (bonus > 0) {
switch (bonus) {