fr.lip6.sma.simulacion.app.map
Class MapMultiCellController

java.lang.Object
  extended by fr.lip6.sma.simulacion.app.map.MapMultiCellController

public class MapMultiCellController
extends Object

This class defines keys that are used to move on the map.

Version:
$Revision: 3 $
Author:
Eric Platon
See Also:
"Nothing special"

Field Summary
private  MapMultiCellGameController mGameController
          Game controller.
private  MapMultiCellModel mModel
          Game model.
private  MapMultiCellPanel mPane
          The panel under control
 
Constructor Summary
MapMultiCellController(MapMultiCellPanel inMMCP, MapMultiCellModel inModel, MapMultiCellGameController inGameController)
          Constructor of the map controller.
 
Method Summary
 void removeKeys(JComponent inRootPane)
          Method to setup the controller actions.
 void setUpKeys(JComponent inRootPane)
          Method to setup the controller actions.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

mPane

private final MapMultiCellPanel mPane
The panel under control


mModel

private final MapMultiCellModel mModel
Game model.


mGameController

private final MapMultiCellGameController mGameController
Game controller.

Constructor Detail

MapMultiCellController

public MapMultiCellController(MapMultiCellPanel inMMCP,
                              MapMultiCellModel inModel,
                              MapMultiCellGameController inGameController)
Constructor of the map controller.

Parameters:
inMMCP - the MapMultiCellPanel under control
inModel - model of the game.
inGameController - controller for the map moves.
Method Detail

setUpKeys

public void setUpKeys(JComponent inRootPane)
Method to setup the controller actions. Setup the arrows of the keyboard to control the agent movements.

Parameters:
inRootPane - pane where the map component is.

removeKeys

public void removeKeys(JComponent inRootPane)
Method to setup the controller actions. Setup the arrows of the keyboard to control the agent movements.

Parameters:
inRootPane - pane where the map component is.