1 package de.lathanda.eos.game;
3 import java.awt.BorderLayout;
4 import java.awt.event.WindowEvent;
5 import java.awt.event.WindowListener;
7 import javax.swing.JFrame;
9 import de.lathanda.eos.base.MutableColor;
15 class GameFrame
extends JFrame implements WindowListener{
16 private static final long serialVersionUID = -7729801117398028803L;
26 protected GameFrame(
double width,
double height, MutableColor back, Game game, String title) {
31 setLayout(
new BorderLayout());
32 add(
new GamePanel(game, 30, back, width, height), BorderLayout.CENTER);
36 addWindowListener(
this);
39 public void windowActivated(WindowEvent we) {}
40 public void windowClosed(WindowEvent we) {
43 public void windowClosing(WindowEvent we) {
46 public void windowDeactivated(WindowEvent we) {}
47 public void windowDeiconified(WindowEvent we) {}
48 public void windowIconified(WindowEvent we) {}
49 public void windowOpened(WindowEvent we) {}