simulation_InteractiveVersion
Class ControllerV3

java.lang.Object
  extended by simulation_InteractiveVersion.ControllerV3
All Implemented Interfaces:
java.awt.event.ActionListener, java.awt.event.KeyListener, java.util.EventListener

public class ControllerV3
extends java.lang.Object
implements java.awt.event.ActionListener, java.awt.event.KeyListener

This class encapsulates an listener that implements behaviours in response to action events. This class implements an ActionListener. This class encapsulates an listener that implements behaviours in response to user input events. This class implements an KeyListener.

Author:
mb

Field Summary
static java.util.logging.Logger logger
           
 
Constructor Summary
ControllerV3(GameCanvas gameCanvas, GameWorldModel gameWorld)
           
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent ae)
           
 void keyPressed(java.awt.event.KeyEvent arg0)
           
 void keyReleased(java.awt.event.KeyEvent arg0)
           
 void keyTyped(java.awt.event.KeyEvent arg0)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

public static java.util.logging.Logger logger
Constructor Detail

ControllerV3

public ControllerV3(GameCanvas gameCanvas,
                    GameWorldModel gameWorld)
Method Detail

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent ae)
Specified by:
actionPerformed in interface java.awt.event.ActionListener

keyPressed

public void keyPressed(java.awt.event.KeyEvent arg0)
Specified by:
keyPressed in interface java.awt.event.KeyListener

keyReleased

public void keyReleased(java.awt.event.KeyEvent arg0)
Specified by:
keyReleased in interface java.awt.event.KeyListener

keyTyped

public void keyTyped(java.awt.event.KeyEvent arg0)
Specified by:
keyTyped in interface java.awt.event.KeyListener