BulletHitBulletEvent (Robocode 1.2.4-Beta API)

Overview | Package | Class | Tree | Deprecated | Index | Help

PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## robocode
Class BulletHitBulletEvent

    java.lang.Object
      robocode.Event
          robocode.BulletHitBulletEvent

All Implemented Interfaces:
  java.lang.Comparable<Event>

    public class BulletHitBulletEvent

extends Event

This event is sent to `onBulletHitBullet` when one of your bullets hits another bullet.

Author:
  Mathew A. Nelson (original)

Constructor Summary
`BulletHitBulletEvent(Bullet bullet, Bullet hitBullet)` Called by the game to create a new BulletHitEvent.

Method Summary
`Bullet` | `getBullet()` Returns the Bullet.
`Bullet` | `getHitBullet()` Returns the Bullet that was hit.

Methods inherited from class robocode.Event
`compareTo, getPriority, getTime, setPriority, setTime`

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### BulletHitBulletEvent

    public BulletHitBulletEvent(Bullet bullet,
                                Bullet hitBullet)

  Called by the game to create a new BulletHitEvent.

Method Detail

### getBullet

    public Bullet getBullet()

  Returns the Bullet.

  Returns:
    Bullet

### getHitBullet

    public Bullet getHitBullet()

  Returns the Bullet that was hit.

  Returns:
    Bullet

Overview | Package | Class | Tree | Deprecated | Index | Help

PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD