The Wall (left/right/top side) in the Arkanoid game that represents a single "square".
More...
#include <wall.h>
|
| 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 |
|
The Wall (left/right/top side) in the Arkanoid game that represents a single "square".
Definition at line 17 of file wall.h.
◆ Wall() [1/2]
Default Constructor.
Initialise the Wall at origin ([0, 0]) in the World.
Definition at line 12 of file wall.cpp.
◆ Wall() [2/2]
arkanoid::Wall::Wall |
( |
double |
x, |
|
|
double |
y, |
|
|
pair< double, double > |
size = make_pair(1, 1) |
|
) |
| |
Constructor.
Initialise the Wall at a specific position in the World.
- Parameters
-
x | The x position (in the grid) of the Wall. |
y | The y position (in the grid) of the Wall. |
size | (optional) The size (width and height respectively) of the Wall. |
Definition at line 14 of file wall.cpp.
◆ ~Wall()
arkanoid::Wall::~Wall |
( |
| ) |
|
Destructor.
Definition at line 16 of file wall.cpp.
◆ draw()
void arkanoid::Wall::draw |
( |
| ) |
const |
|
virtual |
◆ update()
void arkanoid::Wall::update |
( |
| ) |
|
|
virtual |
The documentation for this class was generated from the following files:
- src/arkanoid/logic/entity/wall/wall.h
- src/arkanoid/logic/entity/wall/wall.cpp