Package robocode.robotinterfaces

Examples of robocode.robotinterfaces.IBasicEvents


  /**
   * {@inheritDoc}
   */
  @Override
  final void dispatch(IBasicRobot robot, IRobotStatics statics, Graphics2D graphics) {
    IBasicEvents listener = robot.getBasicEventListener();

    if (listener != null) {
      listener.onHitRobot(this);
    }
  }
View Full Code Here


  /**
   * {@inheritDoc}
   */
  @Override
  final void dispatch(IBasicRobot robot, IRobotStatics statics, Graphics2D graphics) {
    IBasicEvents listener = robot.getBasicEventListener();

    if (listener != null) {
      listener.onHitByBullet(this);
    }
  }
View Full Code Here

  /**
   * {@inheritDoc}
   */
  @Override
  final void dispatch(IBasicRobot robot, IRobotStatics statics, Graphics2D graphics) {
    IBasicEvents listener = robot.getBasicEventListener();
    if (listener != null) {
      listener.onScannedRobot(this);
    }
  }
View Full Code Here

  /**
   * {@inheritDoc}
   */
  @Override
  final void dispatch(IBasicRobot robot, IRobotStatics statics, Graphics2D graphics) {
    IBasicEvents listener = robot.getBasicEventListener();

    if (listener != null) {
      listener.onBulletHit(this);
    }
  }
View Full Code Here

  /**
   * {@inheritDoc}
   */
  @Override
  final void dispatch(IBasicRobot robot, IRobotStatics statics, Graphics2D graphics) {
    IBasicEvents listener = robot.getBasicEventListener();

    if (listener != null) {
      listener.onDeath(this);
    }
  }
View Full Code Here

  /**
   * {@inheritDoc}
   */
  @Override
  final void dispatch(IBasicRobot robot, IRobotStatics statics, Graphics2D graphics) {
    IBasicEvents listener = robot.getBasicEventListener();

    if (listener != null) {
      listener.onBulletHitBullet(this);
    }
  }
View Full Code Here

  /**
   * {@inheritDoc}
   */
  @Override
  final void dispatch(IBasicRobot robot, IRobotStatics statics, Graphics2D graphics) {
    IBasicEvents listener = robot.getBasicEventListener();

    if (listener != null) {
      listener.onWin(this);
    }
  }
View Full Code Here

   * {@inheritDoc}
   */
  @Override
  final void dispatch(IBasicRobot robot, IRobotStatics statics, Graphics2D graphics) {
    if (robot != null) {
      IBasicEvents listener = robot.getBasicEventListener();

      if (listener != null && IBasicEvents3.class.isAssignableFrom(listener.getClass())) {
        ((IBasicEvents3) listener).onRoundEnded(this);
      }
    }
  }
View Full Code Here

   * {@inheritDoc}
   */
  @Override
  final void dispatch(IBasicRobot robot, IRobotStatics statics, Graphics2D graphics) {
    if (robot != null) {
      IBasicEvents listener = robot.getBasicEventListener();

      if (listener != null && IBasicEvents2.class.isAssignableFrom(listener.getClass())) {
        ((IBasicEvents2) listener).onBattleEnded(this);
      }
    }
  }
View Full Code Here

  /**
   * {@inheritDoc}
   */
  @Override
  final void dispatch(IBasicRobot robot, IRobotStatics statics, Graphics2D graphics) {
    IBasicEvents listener = robot.getBasicEventListener();

    if (listener != null) {
      listener.onBulletMissed(this);
    }
  }
View Full Code Here

TOP

Related Classes of robocode.robotinterfaces.IBasicEvents

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.