6 #include "../math/vector2D.h" 38 Entity(
double x,
double y, pair<double, double> newSize = make_pair(1.0, 1.0));
48 virtual void update() = 0;
53 virtual void draw()
const = 0;
68 void setPosition(
double x,
double y);
75 void setPosition(
const Vector2D &vector);
82 void setSize(pair<double, double> newSize);
89 pair<double, double> getSize()
const;
96 bool collidesWith(
const Entity &other)
const;
Vector2D position
The current position of the Entity (in the 9x7 grid).
Representation of a vector.
All the game logic of the Arkanoid game.
An Entity represents an "object" (like Player, Ball, Block, ...) in the game World.
pair< double, double > size
The size (width and height respectively) of the Entity.