VEGO-Engine  0.1
Loading...
Searching...
No Matches
SpriteComponent Class Reference
Inheritance diagram for SpriteComponent:
[legend]
Collaboration diagram for SpriteComponent:
[legend]

Public Member Functions

Textures getTexture ()
 
 SpriteComponent (Textures texture, int zIndex)
 
 SpriteComponent (Textures texture, int xOffset, int yOffset, int zIndex)
 
 SpriteComponent (const char *path, int xOffset, int yOffset, int zIndex)
 
 SpriteComponent (Textures texture, bool isAnimated, std::map< std::string, std::unique_ptr< Animation > > *animationList, std::string defaultAnimation, int zIndex)
 
void setTexture (Textures texture)
 
void setMapTileTexture (const char *path)
 
void init () override
 
void update (uint_fast16_t diffTime) override
 
void draw () override
 
void playAnimation (std::string type)
 
void setDirection (Direction direction)
 
- Public Member Functions inherited from RenderObject
 RenderObject (int zIndex, RenderManager *renderManager)
 
int getZIndex ()
 

Public Attributes

int animationIndex = 0
 
std::map< std::string, std::unique_ptr< Animation > > * animations = nullptr
 
- Public Attributes inherited from Component
Entityentity
 

Additional Inherited Members

- Protected Attributes inherited from RenderObject
RenderManagerrenderManager
 

Member Function Documentation

◆ draw()

void SpriteComponent::draw ( )
overridevirtual

Implements RenderObject.

◆ init()

void SpriteComponent::init ( )
overridevirtual

Reimplemented from Component.

◆ update()

void SpriteComponent::update ( uint_fast16_t diffTime)
overridevirtual

Reimplemented from Component.


The documentation for this class was generated from the following files: