Class BulletHitBulletEvent

  • All Implemented Interfaces:
    IEvent

    public final class BulletHitBulletEvent
    extends BotEvent
    Event occurring when a bullet has collided with another bullet.
    • 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.