C++ Project 2016-2017: Arkanoid
src
arkanoid
gui
entity_sfml
block_sfml
special_block_sfml
ball_speed_block_sfml.cpp
Go to the documentation of this file.
1
3
#include "
ball_speed_block_sfml.h
"
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
14
BallSpeedBlockSFML::~BallSpeedBlockSFML
() {}
15
16
void
BallSpeedBlockSFML::update
() {}
17
18
void
BallSpeedBlockSFML::draw
()
const
{
19
windowSFML.draw(
sprite
);
20
}
21
22
}
arkanoidSFML::BlockSFML::sprite
sf::Sprite sprite
The sprite of the BlockSFML.
Definition:
block_sfml.h:23
arkanoidSFML::BallSpeedBlockSFML::draw
void draw() const
Definition:
ball_speed_block_sfml.cpp:18
std
arkanoidSFML::BlockSFML
The SFML element that represents the arkanoid::Block in the game.
Definition:
block_sfml.h:19
arkanoidSFML::BallSpeedBlockSFML::~BallSpeedBlockSFML
~BallSpeedBlockSFML()
Definition:
ball_speed_block_sfml.cpp:14
arkanoidSFML
All the game gui elements of the Arkanoid game.
Definition:
ball_sfml.cpp:10
ball_speed_block_sfml.h
arkanoidSFML::BallSpeedBlockSFML::update
void update()
Definition:
ball_speed_block_sfml.cpp:16
Generated by
1.8.13