C++ Project 2016-2017: Arkanoid
|
The SFML element that represents the arkanoid::InvisBlock in the game. More...
#include <invis_block_sfml.h>
Public Member Functions | |
InvisBlockSFML (double x, double y, sf::RenderWindow &window, const string &textureFile="data/sprites/blocks/red_block.png") | |
~InvisBlockSFML () | |
void | update () |
void | draw () const |
![]() | |
InvisBlock () | |
InvisBlock (double x, double y, pair< double, double > size=make_pair(1, 2)) | |
~InvisBlock () | |
void | update () |
void | draw () const |
void | effectBall (unique_ptr< Ball > &ball) const |
![]() | |
Block () | |
Block (double x, double y, pair< double, double > size=make_pair(1, 2)) | |
~Block () | |
![]() | |
Wall () | |
Wall (double x, double y, pair< double, double > size=make_pair(1, 1)) | |
~Wall () | |
void | update () |
void | draw () const |
![]() | |
Entity () | |
Entity (double x, double y, pair< double, double > newSize=make_pair(1.0, 1.0)) | |
virtual | ~Entity () |
Vector2D | getPosition () const |
void | setPosition (double x, double y) |
void | setPosition (const Vector2D &vector) |
void | setSize (pair< double, double > newSize) |
pair< double, double > | getSize () const |
bool | collidesWith (const Entity &other) const |
![]() | |
BlockSFML (double x, double y, sf::RenderWindow &window, const string &textureFile="data/sprites/blocks/blue_block.png") | |
~BlockSFML () | |
Additional Inherited Members | |
![]() | |
Vector2D | position |
The current position of the Entity (in the 9x7 grid). | |
pair< double, double > | size |
The size (width and height respectively) of the Entity. | |
![]() | |
sf::RenderWindow & | windowSFML |
sf::Sprite | sprite |
The sprite of the BlockSFML. | |
sf::Texture | texture |
Transformation * | transformation |
The SFML element that represents the arkanoid::InvisBlock in the game.
Definition at line 19 of file invis_block_sfml.h.
arkanoidSFML::InvisBlockSFML::InvisBlockSFML | ( | double | x, |
double | y, | ||
sf::RenderWindow & | window, | ||
const string & | textureFile = "data/sprites/blocks/red_block.png" |
||
) |
Constructor.
Creates a InvisBlockSFML sprite in the World at a specific position in the game window. Also applies the texture to this InvisBlockSFML.
x | The x (on screen) position of the arkanoid::Block. |
y | The y (on screen) position of the arkanoid::Block. |
window | The SFML window. |
textureFile | (optional) The file that contains the texture of the InvisBlockSFML. |
Definition at line 12 of file invis_block_sfml.cpp.
arkanoidSFML::InvisBlockSFML::~InvisBlockSFML | ( | ) |
Destructor.
Definition at line 14 of file invis_block_sfml.cpp.
|
virtual |
Draws the InvisBlockSFML in the game window.
Reimplemented from arkanoidSFML::BlockSFML.
Definition at line 18 of file invis_block_sfml.cpp.
|
virtual |
Do nothing...
Reimplemented from arkanoidSFML::BlockSFML.
Definition at line 16 of file invis_block_sfml.cpp.