Class BulletHitBulletEvent
- Object
-
- BotEvent
-
- 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 BulletStategetBullet()Returns the bullet that hit another bullet.BulletStategetHitBullet()Returns the other bullet that was hit by the bullet.-
Methods inherited from class 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.
-
-