Class BulletFiredEvent
- java.lang.Object
-
- dev.robocode.tankroyale.botapi.events.BotEvent
-
- dev.robocode.tankroyale.botapi.events.BulletFiredEvent
-
-
Constructor Summary
Constructors Constructor Description BulletFiredEvent(int turnNumber, BulletState bullet)
Initializes a new instance of the BulletFiredEvent class.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BulletState
getBullet()
Returns the bullet that was fired.-
Methods inherited from class dev.robocode.tankroyale.botapi.events.BotEvent
getTurnNumber, isCritical
-
-
-
-
Constructor Detail
-
BulletFiredEvent
public BulletFiredEvent(int turnNumber, BulletState bullet)
Initializes a new instance of the BulletFiredEvent class.- Parameters:
turnNumber
- is the turn number when the bullet was fired.bullet
- is the bullet that was fired.
-
-
Method Detail
-
getBullet
public BulletState getBullet()
Returns the bullet that was fired.- Returns:
- The bullet that was fired.
-
-