71 virtual void setPosition(std::pair<size_t, size_t> position) = 0;
78 virtual std::pair<size_t, size_t>
getSize()
const = 0;
Abstract interface for entities.
Definition: IEntity.hpp:25
virtual std::string getSpriteName() const =0
Gets the sprite name of the entity.
virtual std::pair< size_t, size_t > getSize() const =0
Gets the size of the entity.
virtual void setPosition(std::pair< size_t, size_t > position)=0
Sets the position of the entity.
virtual void onClick()=0
Handles the click event on the entity.
virtual bool isMovable() const =0
Checks if the entity is movable.
virtual void moveEntity()=0
Moves the entity.
virtual std::size_t getZIndex() const =0
Gets the z-index of the entity.
virtual std::pair< size_t, size_t > getPosition() const =0
Gets the position of the entity.
virtual std::size_t getColor() const =0
Gets the color of the entity.
~IEntity()=default
Default destructor for IEntity.
IEntity()=default
Default constructor for IEntity.
virtual void onInteract()=0
Handles interaction with the entity.