Interface IInteractiveEvents
- All Known Implementing Classes:
_AdvancedRadiansRobot,_AdvancedRobot,AdvancedRobot,RateControlRobot,Robot,TeamRobot
IInteractiveRobot.- Since:
- 1.6
- Author:
- Pavel Savara (original), Flemming N. Larsen (contributor)
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionvoidonKeyPressed(KeyEvent event) This method is called when a key has been pressed.voidonKeyReleased(KeyEvent event) This method is called when a key has been released.voidonKeyTyped(KeyEvent event) This method is called when a key has been typed (pressed and released).voidonMouseClicked(MouseEvent event) This method is called when a mouse button has been clicked (pressed and released).voidonMouseDragged(MouseEvent event) This method is called when a mouse button has been pressed and then dragged.voidonMouseEntered(MouseEvent event) This method is called when the mouse has entered the battle view.voidonMouseExited(MouseEvent event) This method is called when the mouse has exited the battle view.voidonMouseMoved(MouseEvent event) This method is called when the mouse has been moved.voidonMousePressed(MouseEvent event) This method is called when a mouse button has been pressed.voidonMouseReleased(MouseEvent event) This method is called when a mouse button has been released.voidonMouseWheelMoved(MouseWheelEvent event) This method is called when the mouse wheel has been rotated.
-
Method Details
-
onKeyPressed
This method is called when a key has been pressed.See the
sample.Interactiverobot for an example of how to use key events.- Parameters:
event- holds details about current event- Since:
- 1.3.4
- See Also:
-
onKeyReleased
This method is called when a key has been released.See the
sample.Interactiverobot for an example of how to use key events.- Parameters:
event- holds details about current event- Since:
- 1.3.4
- See Also:
-
onKeyTyped
This method is called when a key has been typed (pressed and released).See the
sample.Interactiverobot for an example of how to use key events.- Parameters:
event- holds details about current event- Since:
- 1.3.4
- See Also:
-
onMouseClicked
This method is called when a mouse button has been clicked (pressed and released).See the
sample.Interactiverobot for an example of how to use mouse events.- Parameters:
event- holds details about current event- Since:
- 1.3.4
- See Also:
-
onMouseEntered
This method is called when the mouse has entered the battle view.See the
sample.Interactiverobot for an example of how to use mouse events.- Parameters:
event- holds details about current event- Since:
- 1.3.4
- See Also:
-
onMouseExited
This method is called when the mouse has exited the battle view.See the
sample.Interactiverobot for an example of how to use mouse events.- Parameters:
event- holds details about current event- Since:
- 1.3.4
- See Also:
-
onMousePressed
This method is called when a mouse button has been pressed.See the
sample.Interactiverobot for an example of how to use mouse events.- Parameters:
event- holds details about current event- Since:
- 1.3.4
- See Also:
-
onMouseReleased
This method is called when a mouse button has been released.See the
sample.Interactiverobot for an example of how to use mouse events.- Parameters:
event- holds details about current event- Since:
- 1.3.4
- See Also:
-
onMouseMoved
This method is called when the mouse has been moved.See the
sample.Interactiverobot for an example of how to use mouse events.- Parameters:
event- holds details about current event- Since:
- 1.3.4
- See Also:
-
onMouseDragged
This method is called when a mouse button has been pressed and then dragged.See the
sample.Interactiverobot for an example of how to use mouse events.- Parameters:
event- holds details about current event- Since:
- 1.3.4
- See Also:
-
onMouseWheelMoved
This method is called when the mouse wheel has been rotated.See the
sample.Interactiverobot for an example of how to use mouse events.- Parameters:
event- holds details about current event- See Also:
-