|
Architecture Arcade
Architecture Commune Arcade
|
#include <ISprite.hpp>


Public Attributes | |
| std::string | path |
| The path of the sprite. More... | |
| TTYData | ttyData |
| Data for tty graphic lib to be hable to draw it. More... | |
| Arcade::Vector3f | pos |
| The sprite position in 3Dimension (you can use only x and y if you want) More... | |
| Rect | rect |
| The sprite rect of one sprite in the spritesheet path. More... | |
| int | currentRectIndex |
| The index of the current sprite. More... | |
Public Attributes inherited from Arcade::ECS::IComponent | |
| CompType | type |
| Type of the component (it let you cast without headache) More... | |
| std::string | id |
| Name of the component. More... | |
Additional Inherited Members | |
Public Member Functions inherited from Arcade::ECS::IComponent | |
| virtual | ~IComponent ()=default |
The ISprite class.
The ISprite interface is the class where you can manipulate your sprites. ATTENTION: This class is of CompType SPRITE (you need to set the type in order for the graphic to play it)
| int Arcade::Graph::ISprite::currentRectIndex |
The index of the current sprite.
to get the rect of the current sprite: sprite.rect.left + (sprite.rect.width * sprite.currentRectIndex);
| std::string Arcade::Graph::ISprite::path |
The path of the sprite.
| Arcade::Vector3f Arcade::Graph::ISprite::pos |
The sprite position in 3Dimension (you can use only x and y if you want)
Positions in Pixel, terminal graph libs handle ratio
| Rect Arcade::Graph::ISprite::rect |
The sprite rect of one sprite in the spritesheet path.
| TTYData Arcade::Graph::ISprite::ttyData |
Data for tty graphic lib to be hable to draw it.