Base class for all ball types in the game.
Artificial Intelligence for controlling a paddle.
Definition ai.hpp:22
void set_difficulty(int difficulty)
Sets the AI difficulty level.
Definition ai.cpp:32
void updateAI(BallBase *ball, float dt)
Updates the AI-controlled paddle's position.
Definition ai.cpp:46
Paddle * racket
Definition ai.hpp:49
AI(Paddle *controlledPaddle)
Constructor for AI class.
Definition ai.cpp:21
int ai_difficulty
Definition ai.hpp:50
Abstract base class for all ball types in the game.
Definition ball_base.hpp:23
Represents a player paddle/racket in the game.
Definition paddle.hpp:20
Header defining the Paddle class for the game.