Class BulletHitBulletEvent
- java.lang.Object
-
- dev.robocode.tankroyale.botapi.events.BotEvent
-
- dev.robocode.tankroyale.botapi.events.BulletHitBulletEvent
-
-
Constructor Summary
Constructors Constructor Description BulletHitBulletEvent(int turnNumber, BulletState bullet, BulletState hitBullet)
Initializes a new instance of the BulletHitBulletEvent class.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BulletState
getBullet()
Returns the bullet that hit another bullet.BulletState
getHitBullet()
Returns the other bullet that was hit by the bullet.-
Methods inherited from class dev.robocode.tankroyale.botapi.events.BotEvent
getTurnNumber, isCritical
-
-
-
-
Constructor Detail
-
BulletHitBulletEvent
public BulletHitBulletEvent(int turnNumber, BulletState bullet, BulletState hitBullet)
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 Detail
-
getBullet
public BulletState getBullet()
Returns the bullet that hit another bullet.- Returns:
- The bullet that hit another bullet.
-
getHitBullet
public BulletState getHitBullet()
Returns the other bullet that was hit by the bullet.- Returns:
- The other bullet that was hit by the bullet.
-
-