robocode
Class BulletHitBulletEvent
- Comparable, Serializable
public final class BulletHitBulletEvent
This event is sent to
onBulletHitBullet
when one of your bullets has hit another bullet.
- Mathew A. Nelson (original)
BulletHitBulletEvent
public BulletHitBulletEvent(Bullet bullet,
Bullet hitBullet)
Called by the game to create a new BulletHitEvent
.
bullet
- your bullet that hit another bullethitBullet
- the bullet that was hit by your bullet
getBullet
public Bullet getBullet()
Returns your bullet that hit another bullet.
getHitBullet
public Bullet getHitBullet()
Returns the bullet that was hit by your bullet.