TazGraph Project v0.1.0
Loading...
Searching...
No Matches
Public Member Functions | List of all members
MovingAnimatorComponent Class Reference
Inheritance diagram for MovingAnimatorComponent:
Inheritance graph
[legend]
Collaboration diagram for MovingAnimatorComponent:
Collaboration graph
[legend]

Public Member Functions

 MovingAnimatorComponent ()
 also we use MovingAnimator instead of simple Animator so that entities use less memory and we use it to entities that have triggers that change their animation
 
 MovingAnimatorComponent (std::string id)
 
void init () override
 
void update (float deltaTime) override
 
void draw (size_t e_index, PlaneModelRenderer &batch, TazGraphEngine::Window &window) override
 
void Play (const char *animName, int reps=0)
 
void resetAnimation ()
 
std::string getPlayName ()
 
void DestroyTex ()
 
- Public Member Functions inherited from AnimatorComponent
 AnimatorComponent (std::string id)
 
void Play (std::string animName, int reps=0)
 
void resetAnimation ()
 
std::string getPlayName ()
 
void DestroyTex ()
 
- Public Member Functions inherited from BaseComponent
virtual void draw (size_t e_index, LineRenderer &batch, TazGraphEngine::Window &window)
 
virtual void draw (size_t e_index, PlaneColorRenderer &batch, TazGraphEngine::Window &window)
 
virtual void draw (size_t e_index, LightRenderer &batch, TazGraphEngine::Window &window)
 
virtual std::string GetComponentName ()
 
virtual void showGUI ()
 

Additional Inherited Members

- Public Attributes inherited from AnimatorComponent
SpriteComponentsprite = nullptr
 
std::string textureid
 
std::string animationName = ""
 
timestamp resumeTime = 0
 
- Public Attributes inherited from Component
Entityentity = nullptr
 
- Public Attributes inherited from BaseComponent
ComponentID id = 0u
 

Member Function Documentation

◆ draw()

void MovingAnimatorComponent::draw ( size_t  e_index,
PlaneModelRenderer batch,
TazGraphEngine::Window window 
)
inlineoverridevirtual

Reimplemented from AnimatorComponent.

◆ init()

void MovingAnimatorComponent::init ( )
inlineoverridevirtual

Reimplemented from AnimatorComponent.

◆ update()

void MovingAnimatorComponent::update ( float  deltaTime)
inlineoverridevirtual

Reimplemented from AnimatorComponent.


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