C++ Project 2016-2017: Arkanoid
ball_speed_block_sfml.cpp
Go to the documentation of this file.
1 
4 
5 #include <SFML/Graphics.hpp>
6 #include <iostream>
7 
8 using namespace std;
9 
10 namespace arkanoidSFML {
11 
12  BallSpeedBlockSFML::BallSpeedBlockSFML(double x, double y, sf::RenderWindow &window, double speedF, const string &textureFile) : BallSpeedBlock(x, y, speedF), BlockSFML(x, y, window, textureFile) {}
13 
15 
17 
18  void BallSpeedBlockSFML::draw() const {
19  windowSFML.draw(sprite);
20  }
21 
22 }
sf::Sprite sprite
The sprite of the BlockSFML.
Definition: block_sfml.h:23
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