Class BatAttackPattern

All Implemented Interfaces:
com.badlogic.gdx.utils.Json.Serializable

public class BatAttackPattern extends AttackPatternComponent
The BatAttackPattern class defines the attack behavior of a Bat entity in the game. It allows the bat to detect the player and attack them when in range.
  • Constructor Details

    • BatAttackPattern

      public BatAttackPattern(float attackFrequency)
  • Method Details

    • attack

      protected void attack()
      Performs the attack action, which involves determining the nearest entity, changing direction, triggering attack events, and scheduling the next attack.
      Overrides:
      attack in class AttackPatternComponent