All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class pinball.player.movitrobot.MovitRobotControls

java.lang.Object
   |
   +----pinball.player.EventControls
           |
           +----pinball.player.movitrobot.MovitRobotControls

public class MovitRobotControls
extends EventControls
Control the robot by keys as a test, but the robot can control itself.


Variable Index

 o BACKWARD
States of the robot.
 o controller
The controller for the robot.
 o FORWARD
States of the robot.
 o LEFT
States of the robot.
 o RIGHT
States of the robot.
 o STOPPED
States of the robot.

Constructor Index

 o MovitRobotControls()
Make the robot controls.

Method Index

 o keyPressed(KeyEvent)
 o keyReleased(KeyEvent)
 o keyTyped(KeyEvent)
Keys are pressed, check them.
 o mouseClicked(MouseEvent)
 o mouseEntered(MouseEvent)
When the mouse is window, make sure the canvas has focus.
 o mouseExited(MouseEvent)
 o mousePressed(MouseEvent)
Mouse is pressed add the location of the mouse to the flipper zone.
 o mouseReleased(MouseEvent)
 o setController(MovitRobotStub)
Set the controller of the robot.
 o setPanel(Panel)
The panel that contains the image from the camera.
 o status()
The current status of the system.
 o stoppedTime()
The last time the system stopped.

Variables

 o FORWARD
 public static int FORWARD
States of the robot.

 o BACKWARD
 public static int BACKWARD
States of the robot.

 o LEFT
 public static int LEFT
States of the robot.

 o RIGHT
 public static int RIGHT
States of the robot.

 o STOPPED
 public static int STOPPED
States of the robot.

 o controller
 public MovitRobotStub controller
The controller for the robot.

Constructors

 o MovitRobotControls
 public MovitRobotControls()
Make the robot controls.

Methods

 o setController
 public void setController(MovitRobotStub controller)
Set the controller of the robot.

 o mousePressed
 public void mousePressed(MouseEvent event)
Mouse is pressed add the location of the mouse to the flipper zone.

Parameters:
event - the mouse was pressed.
Overrides:
mousePressed in class EventControls
 o mouseClicked
 public void mouseClicked(MouseEvent event)
Overrides:
mouseClicked in class EventControls
 o mouseReleased
 public void mouseReleased(MouseEvent event)
Overrides:
mouseReleased in class EventControls
 o mouseExited
 public void mouseExited(MouseEvent event)
Overrides:
mouseExited in class EventControls
 o keyPressed
 public void keyPressed(KeyEvent key)
Overrides:
keyPressed in class EventControls
 o keyReleased
 public void keyReleased(KeyEvent key)
Overrides:
keyReleased in class EventControls
 o stoppedTime
 public long stoppedTime()
The last time the system stopped.

 o status
 public int status()
The current status of the system.

 o mouseEntered
 public void mouseEntered(MouseEvent event)
When the mouse is window, make sure the canvas has focus.

Parameters:
event - Mouse has entered the window.
Overrides:
mouseEntered in class EventControls
 o setPanel
 public void setPanel(Panel p)
The panel that contains the image from the camera.

 o keyTyped
 public void keyTyped(KeyEvent key)
Keys are pressed, check them.

Parameters:
key - the key pressed.
Overrides:
keyTyped in class EventControls

All Packages  Class Hierarchy  This Package  Previous  Next  Index