Architecture Arcade
Architecture Commune Arcade
ISprite.hpp
Go to the documentation of this file.
1 /*
2 ** EPITECH PROJECT, 2023
3 ** Archi Arcade Promo 2026 Toulouse
4 ** File description:
5 ** A sprite child of components that will be understood by the graphic library
6 */
7 
8 #pragma once
9 
10 #include <string>
11 #include "ArcadeStruct.hpp"
12 #include "GraphStruct.hpp"
13 #include "IComponent.hpp"
14 
15 namespace Arcade {
16  namespace Graph {
25  struct ISprite : public Arcade::ECS::IComponent {
26  public:
30  std::string path;
54  };
55  } // namespace Graph
56 } // namespace Arcade
Definition: ArcadeStruct.hpp:10
Definition: ArcadeStruct.hpp:17
Definition: IComponent.hpp:39
Definition: GraphStruct.hpp:21
Definition: GraphStruct.hpp:27
The ISprite class.
Definition: ISprite.hpp:25
int currentRectIndex
The index of the current sprite.
Definition: ISprite.hpp:53
Rect rect
The sprite rect of one sprite in the spritesheet path.
Definition: ISprite.hpp:45
TTYData ttyData
Data for tty graphic lib to be hable to draw it.
Definition: ISprite.hpp:34
Arcade::Vector3f pos
The sprite position in 3Dimension (you can use only x and y if you want)
Definition: ISprite.hpp:41
std::string path
The path of the sprite.
Definition: ISprite.hpp:30