clean up 'n bugcrushing

This commit is contained in:
Bilel Bghiel
2015-06-19 14:36:40 +02:00
parent 864b6efa52
commit d92cd7333b
16 changed files with 116 additions and 183 deletions
+7 -8
View File
@@ -15,19 +15,18 @@ import control.joystick.JoystickListener;
public class GameControl implements JoystickListener, ButtonListener, ActionListener {
private long lastTime = System.currentTimeMillis();
GameModel model;
GameView view;
GameStateManager gsm;
Timer update;
private GameModel model;
private GameView view;
private GameStateManager gsm;
private Timer update;
public GameControl(final GameModel model, final GameView view,GameStateManager gsm)
{
public GameControl(final GameModel model, final GameView view,GameStateManager gsm) {
this.model = model;
this.view = view;
this.gsm = gsm;
view.setIgnoreRepaint(true);
update = new Timer(1000/60,this);
update.start();
(update = new Timer(1000/60,this)).start();
}
@Override