Package robocode
Class BulletHitBulletEvent
java.lang.Object
robocode.Event
robocode.BulletHitBulletEvent
- All Implemented Interfaces:
Serializable
,Comparable<Event>
This event is sent to
onBulletHitBullet
when one of your bullets has hit another bullet.- Author:
- Mathew A. Nelson (original), Flemming N. Larsen (contributor)
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionBulletHitBulletEvent
(Bullet bullet, Bullet hitBullet) Called by the game to create a newBulletHitEvent
. -
Method Summary
Modifier and TypeMethodDescriptionReturns your bullet that hit another bullet.Returns the bullet that was hit by your bullet.Methods inherited from class robocode.Event
compareTo, getPriority, getTime, setPriority, setTime
-
Constructor Details
-
BulletHitBulletEvent
Called by the game to create a newBulletHitEvent
.- Parameters:
bullet
- your bullet that hit another bullethitBullet
- the bullet that was hit by your bullet
-
-
Method Details
-
getBullet
Returns your bullet that hit another bullet.- Returns:
- your bullet
-
getHitBullet
Returns the bullet that was hit by your bullet.- Returns:
- the bullet that was hit
-