7 #include "../player/player.h" 8 #include "../../math/vector2D.h" 9 #include "../../math/random.h" 52 Ball(
double x,
double y,
double newSpeed = 8.0, pair<double, double> size = make_pair(1.0, 1.0));
74 void speedUp(
double factor);
81 void setInvisible(
int period);
91 vector<int> bounceIfPossible(vector<unique_ptr<T>>
const &entities);
98 void bounceIfPossible(unique_ptr<Player>
const &player);
104 virtual void reset();
Representation of a vector.
Singleton: generates "random" numbers.
All the game logic of the Arkanoid game.
An Entity represents an "object" (like Player, Ball, Block, ...) in the game World.
The Ball in the Arkanoid game.