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