|
|
| IEntity ()=default |
| | Default constructor for IEntity.
|
| |
|
| ~IEntity ()=default |
| | Default destructor for IEntity.
|
| |
| virtual void | onClick ()=0 |
| | Handles the click event on the entity. More...
|
| |
| virtual void | moveEntity ()=0 |
| | Moves the entity. More...
|
| |
| virtual void | onInteract ()=0 |
| | Handles interaction with the entity. More...
|
| |
| virtual std::pair< size_t, size_t > | getPosition () const =0 |
| | Gets the position of the entity. More...
|
| |
| virtual void | setPosition (std::pair< size_t, size_t > position)=0 |
| | Sets the position of the entity. More...
|
| |
| virtual std::pair< size_t, size_t > | getSize () const =0 |
| | Gets the size of the entity. More...
|
| |
| virtual std::string | getSpriteName () const =0 |
| | Gets the sprite name of the entity. More...
|
| |
| virtual std::size_t | getColor () const =0 |
| | Gets the color of the entity. More...
|
| |
| virtual std::size_t | getZIndex () const =0 |
| | Gets the z-index of the entity. More...
|
| |
| virtual bool | isMovable () const =0 |
| | Checks if the entity is movable. More...
|
| |
Abstract interface for entities.
The IEntity interface defines the basic structure and behavior of an entity. It includes methods for handling interactions, movement, and retrieving or setting entity properties such as position, size, and appearance.