package plm.core.ui.action;

import java.awt.event.ActionEvent;

import plm.core.lang.ProgrammingLanguage;
import plm.core.model.Game;

public class SetProgLanguage extends AbstractGameAction {

	private static final long serialVersionUID = 5778501209753480269L;

	private ProgrammingLanguage lang;

	public SetProgLanguage(Game game, ProgrammingLanguage lang) {
		super(game, lang.toString(), null);
		this.lang = lang;
	}

	@Override
	public void actionPerformed(ActionEvent e) {
		game.setProgramingLanguage(lang);
	}
}
