C++ Project 2016-2017: Arkanoid
src
arkanoid
gui
entity_sfml
block_sfml
special_block_sfml
player_speed_block_sfml.cpp
Go to the documentation of this file.
1
3
#include "
player_speed_block_sfml.h
"
4
5
#include <SFML/Graphics.hpp>
6
#include <iostream>
7
8
using namespace
std
;
9
10
namespace
arkanoidSFML
{
11
12
PlayerSpeedBlockSFML::PlayerSpeedBlockSFML(
double
x,
double
y, sf::RenderWindow &window,
double
speedF,
const
string
&textureFile) : PlayerSpeedBlock(x, y, speedF),
BlockSFML
(x, y, window, textureFile) {}
13
14
PlayerSpeedBlockSFML::~PlayerSpeedBlockSFML
() {}
15
16
void
PlayerSpeedBlockSFML::update
() {}
17
18
void
PlayerSpeedBlockSFML::draw
()
const
{
19
windowSFML.draw(
sprite
);
20
}
21
22
}
player_speed_block_sfml.h
arkanoidSFML::PlayerSpeedBlockSFML::draw
void draw() const
Definition:
player_speed_block_sfml.cpp:18
arkanoidSFML::BlockSFML::sprite
sf::Sprite sprite
The sprite of the BlockSFML.
Definition:
block_sfml.h:23
std
arkanoidSFML::BlockSFML
The SFML element that represents the arkanoid::Block in the game.
Definition:
block_sfml.h:19
arkanoidSFML::PlayerSpeedBlockSFML::update
void update()
Definition:
player_speed_block_sfml.cpp:16
arkanoidSFML
All the game gui elements of the Arkanoid game.
Definition:
ball_sfml.cpp:10
arkanoidSFML::PlayerSpeedBlockSFML::~PlayerSpeedBlockSFML
~PlayerSpeedBlockSFML()
Definition:
player_speed_block_sfml.cpp:14
Generated by
1.8.13