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 TypeMethodDescriptionvoid
onKeyPressed
(KeyEvent event) This method is called when a key has been pressed.void
onKeyReleased
(KeyEvent event) This method is called when a key has been released.void
onKeyTyped
(KeyEvent event) This method is called when a key has been typed (pressed and released).void
onMouseClicked
(MouseEvent event) This method is called when a mouse button has been clicked (pressed and released).void
onMouseDragged
(MouseEvent event) This method is called when a mouse button has been pressed and then dragged.void
onMouseEntered
(MouseEvent event) This method is called when the mouse has entered the battle view.void
onMouseExited
(MouseEvent event) This method is called when the mouse has exited the battle view.void
onMouseMoved
(MouseEvent event) This method is called when the mouse has been moved.void
onMousePressed
(MouseEvent event) This method is called when a mouse button has been pressed.void
onMouseReleased
(MouseEvent event) This method is called when a mouse button has been released.void
onMouseWheelMoved
(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.Interactive
robot 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.Interactive
robot 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.Interactive
robot 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.Interactive
robot 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.Interactive
robot 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.Interactive
robot 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.Interactive
robot 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.Interactive
robot 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.Interactive
robot 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.Interactive
robot 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.Interactive
robot for an example of how to use mouse events.- Parameters:
event
- holds details about current event- See Also:
-