IEntity
Public member functions
// Refresh the entity (move, shoot, etc.)
virtual void refresh() = 0;
// Get the position of the entity
virtual std::pair<short, short> position() const = 0;
virtual u_int id() const = 0;
// Check if the entity is out of the screen
virtual bool isOutOfScreen() const = 0;
// Check if the entity collide with another entity
virtual bool collide(const IEntity &other) = 0;
// Get the bounding box of the entity (used to check collision)
virtual const BoundingBox<short> &box() const = 0;
// Kill the entity
virtual void killEntity() = 0;
// Check if the entity exist (alive)
virtual bool getExist() const = 0;
// Check if the entity is deletable (dead)
virtual bool getDeletable() const = 0;