C++ Project 2016-2017: Arkanoid
ball_speed_block.h
Go to the documentation of this file.
1 
3 #ifndef BALL_SPEED_BLOCK_H
4 #define BALL_SPEED_BLOCK_H
5 
6 #include "../block.h"
7 
8 #include <iostream>
9 
10 using namespace std;
11 
12 
13 namespace arkanoid {
14 
16  class BallSpeedBlock : virtual public Block {
17  private:
18  double speedFactor;
19 
20  public:
21 
28 
39  BallSpeedBlock(double x, double y, double speedF = 1.5, pair<double, double> size = make_pair(1, 2));
40 
44  ~BallSpeedBlock();
45 
49  void update();
50 
54  void draw() const;
55 
61  void effectBall(unique_ptr<Ball> &ball) const;
62  };
63 
64 }
65 
66 #endif /* BALL_SPEED_BLOCK_H */
The Block in the Arkanoid game, can be hit and destroyed by the Player.
Definition: block.h:18
All the game logic of the Arkanoid game.
Definition: ball.cpp:15
A "special" Block: when hit with a Ball, speed up or slow down the Ball.