The NEW Pong Game  V13.2.1
An interesting implemnettaion of the pong game
classic_ball.hpp
Go to the documentation of this file.
1 
8 #ifndef CLASSIC_BALL_HPP
9 #define CLASSIC_BALL_HPP
10 
11 #include "ball_base.hpp"
12 
20 class ClassicBall : public BallBase
21 {
22 public:
28  ClassicBall() : BallBase(24.0f) {}
29 
38  void render_object(SDL_Renderer *renderer) override;
39 
40  private:
41  SDL_Texture* ball_texture = nullptr;
42 };
43 
44 #endif
Base class for all ball types in the game.
SDL_Renderer * renderer
Definition: ball_test.cpp:25
Abstract base class for all ball types in the game.
Definition: ball_base.hpp:23
Classic circular ball implementation inheriting from BallBase.
Definition: classic_ball.hpp:21
SDL_Texture * ball_texture
Definition: classic_ball.hpp:41
ClassicBall()
Constructor for ClassicBall.
Definition: classic_ball.hpp:28
void render_object(SDL_Renderer *renderer) override
Renders the classic ball on screen.
Definition: classic_ball.cpp:71