SAE21_2021/NewGameListener.java

15 lines
408 B
Java
Raw Normal View History

2022-05-21 17:03:31 +02:00
import java.awt.event.*;
public class NewGameListener implements ActionListener{
private FrameMenu menu;
public NewGameListener(FrameMenu menu){
this.menu=menu;
}
@Override
2022-05-21 17:03:31 +02:00
public void actionPerformed(ActionEvent event){
int[] settings =this.menu.getSettings();
2022-05-23 19:32:09 +02:00
new FrameJeu(settings[0], settings[1], settings[2], this.menu);
2022-05-21 18:41:24 +02:00
this.menu.dispose();
2022-05-21 17:03:31 +02:00
}
}