C++ Project 2016-2017: Arkanoid
ball_speed_block_sfml.h
Go to the documentation of this file.
1 
3 #ifndef BALL_SPEED_BLOCK_SFML_H
4 #define BALL_SPEED_BLOCK_SFML_H
5 
6 #include "../../../../logic/entity/block/special_block/ball_speed_block.h"
7 #include "../block_sfml.h"
8 
9 #include <SFML/Graphics.hpp>
10 #include <iostream>
11 #include <memory>
12 #include <string>
13 
14 using namespace std;
15 
16 namespace arkanoidSFML {
17 
20  public:
21 
34  BallSpeedBlockSFML(double x, double y, sf::RenderWindow &window, double speedF = 1.5, const string &textureFile = "data/sprites/blocks/yellow_block.png");
35 
40 
44  void update();
45 
49  void draw() const;
50 
51  };
52 
53 }
54 
55 #endif /* BALL_SPEED_BLOCK_SFML_H */
The SFML element that represents the arkanoid::Block in the game.
Definition: block_sfml.h:19
All the game gui elements of the Arkanoid game.
Definition: ball_sfml.cpp:10
The SFML element that represents the arkanoid::BallSpeedBlock in the game.
A "special" Block: when hit with a Ball, speed up or slow down the Ball.