cz.cvut.agents.rph.core
Class GameController

java.lang.Object
  extended by cz.cvut.agents.rph.core.GameController
All Implemented Interfaces:
java.awt.event.ActionListener, java.util.EventListener
Direct Known Subclasses:
ReversiController

public abstract class GameController
extends java.lang.Object
implements java.awt.event.ActionListener

Controller of the game. Author: Ondrej Vanek Date: 10/3/12 Time: 9:51 AM


Field Summary
protected  GameModel model
          Model of the game.
 
Constructor Summary
GameController(GameModel model)
          Constructor of the Controller needs model on his input.
 
Method Summary
abstract  GameResult run()
          Execute the game.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.awt.event.ActionListener
actionPerformed
 

Field Detail

model

protected GameModel model
Model of the game.

Constructor Detail

GameController

public GameController(GameModel model)
Constructor of the Controller needs model on his input.

Parameters:
model -
Method Detail

run

public abstract GameResult run()
                        throws java.lang.Exception
Execute the game.

Returns:
return a game result.
Throws:
java.lang.Exception