GameControl.java 611 B

123456789101112131415161718192021222324252627282930313233
  1. package control;
  2. import model.GameModel;
  3. import view.GameView;
  4. import control.button.ButtonEvent;
  5. import control.button.ButtonListener;
  6. import control.joystick.JoystickEvent;
  7. import control.joystick.JoystickListener;
  8. public class GameControl implements JoystickListener, ButtonListener{
  9. GameModel model;
  10. GameView view;
  11. public GameControl(GameModel model, GameView view)
  12. {
  13. this.model = model;
  14. this.view = view;
  15. }
  16. @Override
  17. public void buttonPressed(ButtonEvent e) {
  18. }
  19. @Override
  20. public void buttonReleased(ButtonEvent e) {}
  21. @Override
  22. public void onJoystickMoved(JoystickEvent e) {
  23. }
  24. }