Show PassAction.java syntax highlighted
package geronimo.hoshigo.control.player;
import geronimo.hoshigo.model.game.Game;
import geronimo.hoshigo.model.game.HumanPlayer;
import org.eclipse.jface.action.Action;
public abstract class PassAction extends Action
{
protected Game game;
/**
* Changement de la partie active.
* @param game Nouvelle partie courante
*/
public void setActiveGame(Game game)
{
this.game = game;
}
/**
* Lancement de l'action
*/
public final void run()
{
( (HumanPlayer)this.game.getCurrentPlayer() ).pass();
}
}
See more files for this project here