Class BulletHitBulletEvent
java.lang.Object
dev.robocode.tankroyale.botapi.events.BotEvent
dev.robocode.tankroyale.botapi.events.BulletHitBulletEvent
-
Constructor Summary
ConstructorDescriptionBulletHitBulletEvent
(int turnNumber, BulletState bullet, BulletState hitBullet) Initializes a new instance of the BulletHitBulletEvent class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the bullet that hit another bullet.Returns the other bullet that was hit by the bullet.Methods inherited from class dev.robocode.tankroyale.botapi.events.BotEvent
getTurnNumber, isCritical
-
Constructor Details
-
BulletHitBulletEvent
Initializes a new instance of the BulletHitBulletEvent class.- Parameters:
turnNumber
- is the turn number when the two bullet collided.bullet
- is the bullet that hit another bullet.hitBullet
- is the other bullet that was hit by the bullet.
-
-
Method Details
-
getBullet
Returns the bullet that hit another bullet.- Returns:
- The bullet that hit another bullet.
-
getHitBullet
Returns the other bullet that was hit by the bullet.- Returns:
- The other bullet that was hit by the bullet.
-