Interface IAiService

All Known Implementing Classes:
AiService

public interface IAiService
Interface for AI service. Specifies the methods that the AI service should implement. These include methods for moving the AI, checking if the player is caught, getting the AI model, and resetting the AI.
  • Method Summary

    Modifier and Type
    Method
    Description
    Gets the AI model.
    boolean
    Checks if the AI has caught the player.
    void
    Moves the AI according to its algorithm.
    void
    Resets the AI to its initial state.
  • Method Details

    • moveAi

      void moveAi()
      Moves the AI according to its algorithm.
    • isPlayerCaught

      boolean isPlayerCaught()
      Checks if the AI has caught the player.
      Returns:
      True if the player is caught, false otherwise.
    • getAiModel

      IPlayerModel getAiModel()
      Gets the AI model.
      Returns:
      The AI model.
    • reset

      void reset()
      Resets the AI to its initial state.