Package robocode.robotinterfaces

Examples of robocode.robotinterfaces.IInteractiveEvents


   * {@inheritDoc}
   */
  @Override
  final void dispatch(IBasicRobot robot, IRobotStatics statics, Graphics2D graphics) {
    if (statics.isInteractiveRobot()) {
      IInteractiveEvents listener = ((IInteractiveRobot) robot).getInteractiveEventListener();

      if (listener != null) {
        listener.onMouseWheelMoved((java.awt.event.MouseWheelEvent) getSourceEvent());
      }
    }
  }
View Full Code Here


   * {@inheritDoc}
   */
  @Override
  final void dispatch(IBasicRobot robot, IRobotStatics statics, Graphics2D graphics) {
    if (statics.isInteractiveRobot()) {
      IInteractiveEvents listener = ((IInteractiveRobot) robot).getInteractiveEventListener();

      if (listener != null) {
        listener.onMouseEntered(getSourceEvent());
      }
    }
  }
View Full Code Here

   * {@inheritDoc}
   */
  @Override
  final void dispatch(IBasicRobot robot, IRobotStatics statics, Graphics2D graphics) {
    if (statics.isInteractiveRobot()) {
      IInteractiveEvents listener = ((IInteractiveRobot) robot).getInteractiveEventListener();

      if (listener != null) {
        listener.onKeyPressed(getSourceEvent());
      }
    }
  }
View Full Code Here

   * {@inheritDoc}
   */
  @Override
  final void dispatch(IBasicRobot robot, IRobotStatics statics, Graphics2D graphics) {
    if (statics.isInteractiveRobot()) {
      IInteractiveEvents listener = ((IInteractiveRobot) robot).getInteractiveEventListener();

      if (listener != null) {
        listener.onMouseMoved(getSourceEvent());
      }
    }
  }
View Full Code Here

   * {@inheritDoc}
   */
  @Override
  final void dispatch(IBasicRobot robot, IRobotStatics statics, Graphics2D graphics) {
    if (statics.isInteractiveRobot()) {
      IInteractiveEvents listener = ((IInteractiveRobot) robot).getInteractiveEventListener();

      if (listener != null) {
        listener.onKeyTyped(getSourceEvent());
      }
    }
  }
View Full Code Here

   * {@inheritDoc}
   */
  @Override
  final void dispatch(IBasicRobot robot, IRobotStatics statics, Graphics2D graphics) {
    if (statics.isInteractiveRobot()) {
      IInteractiveEvents listener = ((IInteractiveRobot) robot).getInteractiveEventListener();

      if (listener != null) {
        listener.onMouseDragged(getSourceEvent());
      }
    }
  }
View Full Code Here

   * {@inheritDoc}
   */
  @Override
  final void dispatch(IBasicRobot robot, IRobotStatics statics, Graphics2D graphics) {
    if (statics.isInteractiveRobot()) {
      IInteractiveEvents listener = ((IInteractiveRobot) robot).getInteractiveEventListener();

      if (listener != null) {
        listener.onKeyReleased(getSourceEvent());
      }
    }
  }
View Full Code Here

   * {@inheritDoc}
   */
  @Override
  final void dispatch(IBasicRobot robot, IRobotStatics statics, Graphics2D graphics) {
    if (statics.isInteractiveRobot()) {
      IInteractiveEvents listener = ((IInteractiveRobot) robot).getInteractiveEventListener();

      if (listener != null) {
        listener.onMousePressed(getSourceEvent());
      }
    }
  }
View Full Code Here

   * {@inheritDoc}
   */
  @Override
  final void dispatch(IBasicRobot robot, IRobotStatics statics, Graphics2D graphics) {
    if (statics.isInteractiveRobot()) {
      IInteractiveEvents listener = ((IInteractiveRobot) robot).getInteractiveEventListener();

      if (listener != null) {
        listener.onMouseReleased(getSourceEvent());
      }
    }
  }
View Full Code Here

   * {@inheritDoc}
   */
  @Override
  final void dispatch(IBasicRobot robot, IRobotStatics statics, Graphics2D graphics) {
    if (statics.isInteractiveRobot()) {
      IInteractiveEvents listener = ((IInteractiveRobot) robot).getInteractiveEventListener();

      if (listener != null) {
        listener.onMouseClicked(getSourceEvent());
      }
    }
  }
View Full Code Here

TOP

Related Classes of robocode.robotinterfaces.IInteractiveEvents

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.