robocode.robotinterfaces
Interface IInteractiveEvents
- AdvancedRobot, Robot, TeamRobot, _AdvancedRadiansRobot, _AdvancedRobot
public interface IInteractiveEvents
- Pavel Savara (original)
- Flemming N. Larsen (javadoc)
void | 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.
|
onKeyPressed
public void onKeyPressed(KeyEvent event)
This method is called when a key has been pressed.
See the
sample.Interactive
robot for an example of how to use
key events.
event
- holds details about current event
onKeyReleased
public void onKeyReleased(KeyEvent event)
This method is called when a key has been released.
See the
sample.Interactive
robot for an example of how to use
key events.
event
- holds details about current event
onKeyTyped
public void onKeyTyped(KeyEvent event)
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.
event
- holds details about current event
onMouseClicked
public void onMouseClicked(MouseEvent event)
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.
event
- holds details about current event
onMouseDragged
public void onMouseDragged(MouseEvent event)
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.
event
- holds details about current event
onMouseEntered
public void onMouseEntered(MouseEvent event)
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.
event
- holds details about current event
onMouseExited
public void onMouseExited(MouseEvent event)
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.
event
- holds details about current event
onMouseMoved
public void onMouseMoved(MouseEvent event)
This method is called when the mouse has been moved.
See the
sample.Interactive
robot for an example of how to use
mouse events.
event
- holds details about current event
onMousePressed
public void onMousePressed(MouseEvent event)
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.
event
- holds details about current event
onMouseReleased
public void onMouseReleased(MouseEvent event)
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.
event
- holds details about current event
onMouseWheelMoved
public void onMouseWheelMoved(MouseWheelEvent event)
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.
event
- holds details about current event