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 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.
-