C++ Project 2016-2017: Arkanoid
invis_block.h
Go to the documentation of this file.
1 
3 #ifndef INVIS_BLOCK_H
4 #define INVIS_BLOCK_H
5 
6 #include "../block.h"
7 
8 #include <iostream>
9 
10 using namespace std;
11 
12 
13 namespace arkanoid {
14 
16  class InvisBlock : virtual public Block {
17 
18  public:
19 
25  InvisBlock();
26 
36  InvisBlock(double x, double y, pair<double, double> size = make_pair(1, 2));
37 
41  ~InvisBlock();
42 
46  void update();
47 
51  void draw() const;
52 
58  void effectBall(unique_ptr<Ball> &ball) const;
59  };
60 
61 }
62 
63 #endif /* INVIS_BLOCK_H */
A "special" Block: when hit with a Ball, make the Ball invisible.
Definition: invis_block.h:16
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