robocode
Class BulletHitBulletEvent
java.lang.Object
|
+--robocode.Event
|
+--robocode.BulletHitBulletEvent
- All Implemented Interfaces:
- Comparable
- public class BulletHitBulletEvent
- extends Event
This event is sent to onBulletHitBullet
when one of your bullets hits another bullet.
BulletHitBulletEvent
public BulletHitBulletEvent(Bullet bullet,
Bullet hitBullet)
- Called by the game to create a new BulletHitEvent.
getBullet
public Bullet getBullet()
- Returns the Bullet.
- Returns:
- Bullet
getHitBullet
public Bullet getHitBullet()
- Returns the Bullet that was hit.
- Returns:
- Bullet