com.croftsoft.apps.mars.controller
Class TankController

java.lang.Object
  extended by com.croftsoft.core.gui.event.UserInputAdapter
      extended by com.croftsoft.apps.mars.controller.TankController
All Implemented Interfaces:
UserInputListener, ActionListener, KeyListener, MouseListener, MouseMotionListener, WindowListener, EventListener, ChangeListener, MouseInputListener

public final class TankController
extends UserInputAdapter

Handles user inputs to control the player tank.

Since:
2003-03-20
Version:
2003-04-17
Author:
David Wallace Croft

Constructor Summary
TankController(TankOperator tankOperator, Component component)
           
 
Method Summary
 void keyPressed(KeyEvent keyEvent)
           
 void mouseMoved(MouseEvent mouseEvent)
           
 void mousePressed(MouseEvent mouseEvent)
           
 
Methods inherited from class com.croftsoft.core.gui.event.UserInputAdapter
actionPerformed, keyReleased, keyTyped, mouseClicked, mouseDragged, mouseEntered, mouseExited, mouseReleased, stateChanged, windowActivated, windowClosed, windowClosing, windowDeactivated, windowDeiconified, windowIconified, windowOpened
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TankController

public TankController(TankOperator tankOperator,
                      Component component)
Method Detail

keyPressed

public void keyPressed(KeyEvent keyEvent)
Specified by:
keyPressed in interface KeyListener
Overrides:
keyPressed in class UserInputAdapter

mouseMoved

public void mouseMoved(MouseEvent mouseEvent)
Specified by:
mouseMoved in interface MouseMotionListener
Overrides:
mouseMoved in class UserInputAdapter

mousePressed

public void mousePressed(MouseEvent mouseEvent)
Specified by:
mousePressed in interface MouseListener
Overrides:
mousePressed in class UserInputAdapter

CroftSoft Javadoc

CroftSoft Apps Javadoc (2008-09-28 21:15:07)