The NEW Pong Game  V13.2.1
An interesting implemnettaion of the pong game
square_ball.hpp
Go to the documentation of this file.
1 
8 #ifndef SQUARE_BALL_HPP
9 #define SQUARE_BALL_HPP
10 
11 #include "ball_base.hpp"
12 
20 class SquareBall : public BallBase
21 {
22 public:
28  SquareBall() : BallBase(20.0f) {}
29 
38  void render_object(SDL_Renderer *renderer) override;
39 };
40 
41 #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
Square shaped ball implementation inheriting from BallBase.
Definition: square_ball.hpp:21
SquareBall()
Constructor for SquareBall.
Definition: square_ball.hpp:28
void render_object(SDL_Renderer *renderer) override
Renders the square ball on screen.
Definition: square_ball.cpp:19