C++ Project 2016-2017: Arkanoid
|
The Block in the Arkanoid game, can be hit and destroyed by the Player. More...
#include <block.h>
Public Member Functions | |
Block () | |
Block (double x, double y, pair< double, double > size=make_pair(1, 2)) | |
~Block () | |
void | update () |
void | draw () const |
Public Member Functions inherited from arkanoid::Wall | |
Wall () | |
Wall (double x, double y, pair< double, double > size=make_pair(1, 1)) | |
~Wall () | |
void | update () |
void | draw () const |
Public Member Functions inherited from arkanoid::Entity | |
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 |
Additional Inherited Members | |
Protected Attributes inherited from arkanoid::Entity | |
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. | |
arkanoid::Block::Block | ( | ) |
arkanoid::Block::Block | ( | double | x, |
double | y, | ||
pair< double, double > | size = make_pair(1, 2) |
||
) |
|
virtual |
Do nothing...
Implements arkanoid::Entity.
Reimplemented in arkanoid::BallSpeedBlock, arkanoid::PlayerSpeedBlock, and arkanoid::InvisBlock.
|
virtual |
Do nothing...
Implements arkanoid::Entity.
Reimplemented in arkanoid::BallSpeedBlock, arkanoid::PlayerSpeedBlock, and arkanoid::InvisBlock.