The NEW Pong Game V13.2.1
An interesting implemnettaion of the pong game
Loading...
Searching...
No Matches
ai.hpp
Go to the documentation of this file.
1
8#ifndef AI_HPP
9#define AI_HPP
10
11#include "paddle.hpp"
12#include "ball_base.hpp"
13
21class AI
22{
23public:
28 AI(Paddle* controlledPaddle);
29
39 void updateAI(BallBase* ball, float dt);
40
46 void set_difficulty(int difficulty);
47
48private:
51};
52
53#endif
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.