Browse Source

update

main
Justin Senn 2 years ago
parent
commit
0756853d98
  1. 15
      src/main/java/Snake/Window.java

15
src/main/java/Snake/Window.java

@ -2,6 +2,7 @@ package Snake;
import javax.swing.*; import javax.swing.*;
import java.awt.*; import java.awt.*;
import java.awt.event.ActionListener;
public class Window extends JFrame public class Window extends JFrame
{ {
@ -41,5 +42,19 @@ public class Window extends JFrame
setVisible(true); setVisible(true);
} }
public GameView getGameView()
{
return gameView;
}
public void addStartActionListener(ActionListener listener)
{
startBtn.addActionListener(listener);
}
public void addPauseActionListener(ActionListener listener)
{
pauseBtn.addActionListener(listener);
}
} }
Loading…
Cancel
Save