import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.*;

public class MainMenuController implements ActionListener {
    private MainMenuView view;
    private MainMenuModel model;

    public MainMenuController(MainMenuModel model, MainMenuView view) {
        this.view = view;
        this.model = model;
        //this.view.getLocalButton().addActionListener(this);
        //this.view.getMultiButton().addActionListener(this);
       // this.view.getSoundButton().addActionListener(this);
    }

    @Override
    public void actionPerformed(ActionEvent e) {
        //if (e.getSource() == view.getMultiButton()) {
          //  model.setGameMode("Multiplayer");
          //  MultiMenuModel multiModel = new MultiMenuModel();
          //  MultiMenuView multiView = new MultiMenuView();
          //  MultiMenuController multiMenuController = new MultiMenuController(multiModel, multiView);
         //   view.addPanel(multiView.getMultiPanel(), "MultiMenu");
          //  view.showPanel("MultiMenu");
       // }else if (e.getSource() == view.getSoundButton()) {
       //     view.toggleMute();
       // }else if(e.getSource() == view.getLocalButton()) {
                model.setGameMode("LocalGame");
                //startLocalGame localGame = new startLocalGame();
              //  view.addPanel(localGame.getLocalPanel(), "LocalMenu");
              //  view.showPanel("LocalMenu");
        }
    }
//}