Architecture Arcade
Architecture Commune Arcade
Public Attributes | List of all members
Arcade::Graph::ISprite Struct Reference

The ISprite class. More...

#include <ISprite.hpp>

Inheritance diagram for Arcade::Graph::ISprite:
Inheritance graph
Collaboration diagram for Arcade::Graph::ISprite:
Collaboration graph

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
 

Detailed Description

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)

Member Data Documentation

◆ currentRectIndex

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);

◆ path

std::string Arcade::Graph::ISprite::path

The path of the sprite.

◆ pos

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

Rect Arcade::Graph::ISprite::rect

The sprite rect of one sprite in the spritesheet path.

◆ ttyData

TTYData Arcade::Graph::ISprite::ttyData

Data for tty graphic lib to be hable to draw it.


The documentation for this struct was generated from the following file: