/*
 *   Author: Florian Fink, 2014
 *   Based on Code by: veqryn
 *   
 *   This project is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 2 of the License, or (at your option) any later version.
 *
 *   This project is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
 *
 *   You should have received a copy of the GNU General Public License along with this project. If not, see http://www.gnu.org/licenses/.
 */
package usergames.othello;

import java.awt.event.ActionEvent;

import javax.swing.AbstractAction;
import javax.swing.JMenu;
import javax.swing.JOptionPane;

import games.strategy.grid.ui.GridGameFrame;
import games.strategy.grid.ui.GridGameMenu;

/**
 * An example of a custom game menu for the Othello game 
 */
public class OthelloMenu extends GridGameMenu<GridGameFrame>
{
	private static final long serialVersionUID = 1L;

	public OthelloMenu(GridGameFrame frame) {
		super(frame);
	}

	@Override
	protected void addHowToPlayHelpMenu(JMenu parentMenu) {
		parentMenu.add(new AbstractAction("Menu Example")
		{	
			private static final long serialVersionUID = 1L;

			public void actionPerformed(final ActionEvent e)
			{
				JOptionPane.showMessageDialog(m_frame, "testmessage");
			}
		});
		
	}

}
