|
|
@ -3,12 +3,25 @@ package game; |
|
|
|
import java.awt.event.ActionEvent; |
|
|
|
import java.awt.event.ActionListener; |
|
|
|
|
|
|
|
import Gui.GameGui; |
|
|
|
|
|
|
|
public class loadNextQuestion implements ActionListener { |
|
|
|
|
|
|
|
@Override |
|
|
|
public void actionPerformed(ActionEvent e) { |
|
|
|
// TODO Auto-generated method stub |
|
|
|
|
|
|
|
|
|
|
|
if (runGame.splitAns[4].equals("1")) { |
|
|
|
if (e.getSource() == GameGui.AnswersBtn1) { |
|
|
|
if (GameGui.questionNr != runGame.arrQuestions.length - 1) { |
|
|
|
runGame StartGame = new runGame(); |
|
|
|
StartGame.run(GameGui.questionNr); |
|
|
|
} |
|
|
|
} else { |
|
|
|
System.exit(0); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |