C++ Project 2016-2017: Arkanoid
block.h
Go to the documentation of this file.
1 
3 #ifndef BLOCK_H
4 #define BLOCK_H
5 
6 #include "../wall/wall.h"
7 #include "../ball/ball.h"
8 #include "../../math/vector2D.h"
9 
10 #include <iostream>
11 
12 using namespace std;
13 
14 
15 namespace arkanoid {
16 
18  class Block : public Wall {
19 
20  public:
21 
27  Block();
28 
38  Block(double x, double y, pair<double, double> size = make_pair(1, 2));
39 
43  ~Block();
44 
48  void update();
49 
53  void draw() const;
54 
55  };
56 
57 }
58 
59 #endif /* BLOCK_H */
The Block in the Arkanoid game, can be hit and destroyed by the Player.
Definition: block.h:18
The Wall (left/right/top side) in the Arkanoid game that represents a single "square".
Definition: wall.h:17
All the game logic of the Arkanoid game.
Definition: ball.cpp:15