2D_Game_Engine
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
AnimatedTextureComponent Class Reference

#include <entity.hpp>

Public Member Functions

 AnimatedTextureComponent (const std::string &path, unsigned int tile_width, unsigned int tile_height, int mag_filter, int min_filter, float width, float height, int layer, bool play_animation, bool loop_animation, float animation_delay, int animation_index, uint32_t uid)
 
 AnimatedTextureComponent (std::shared_ptr< SpriteSheet >t, float width, float height, int layer, bool play_animation, bool loop_animation, float animation_delay, int animation_index, uint32_t uid)
 
 AnimatedTextureComponent ()
 
 AnimatedTextureComponent (uint32_t uid)
 
 AnimatedTextureComponent (AnimatedTextureComponent &other)
 
 AnimatedTextureComponent (AnimatedTextureComponent &&other)
 
AnimatedTextureComponentoperator= (AnimatedTextureComponent &b)
 
AnimatedTextureComponentoperator= (AnimatedTextureComponent &&b)
 
void PlayAnimation (bool loop=false, float delay=0.0f)
 

Public Attributes

std::shared_ptr< SpriteSheetm_AnimatedTexture
 
float m_Width
 
float m_Height
 
int m_Layer
 
bool m_PlayAnimation
 
bool m_LoopAnimation
 
float m_AnimationDelay
 
int m_AnimationIndex
 
float m_LastAnimationTime
 
uint32_t m_UID
 

Detailed Description

Definition at line 149 of file entity.hpp.

Constructor & Destructor Documentation

◆ AnimatedTextureComponent() [1/6]

AnimatedTextureComponent::AnimatedTextureComponent ( const std::string & path,
unsigned int tile_width,
unsigned int tile_height,
int mag_filter,
int min_filter,
float width,
float height,
int layer,
bool play_animation,
bool loop_animation,
float animation_delay,
int animation_index,
uint32_t uid )

Definition at line 67 of file entity.cpp.

◆ AnimatedTextureComponent() [2/6]

AnimatedTextureComponent::AnimatedTextureComponent ( std::shared_ptr< SpriteSheet > t,
float width,
float height,
int layer,
bool play_animation,
bool loop_animation,
float animation_delay,
int animation_index,
uint32_t uid )

Definition at line 77 of file entity.cpp.

◆ AnimatedTextureComponent() [3/6]

AnimatedTextureComponent::AnimatedTextureComponent ( )
inline

Definition at line 153 of file entity.hpp.

◆ AnimatedTextureComponent() [4/6]

AnimatedTextureComponent::AnimatedTextureComponent ( uint32_t uid)
inline

Definition at line 154 of file entity.hpp.

◆ AnimatedTextureComponent() [5/6]

AnimatedTextureComponent::AnimatedTextureComponent ( AnimatedTextureComponent & other)

Definition at line 97 of file entity.cpp.

◆ AnimatedTextureComponent() [6/6]

AnimatedTextureComponent::AnimatedTextureComponent ( AnimatedTextureComponent && other)

Definition at line 110 of file entity.cpp.

Member Function Documentation

◆ operator=() [1/2]

AnimatedTextureComponent & AnimatedTextureComponent::operator= ( AnimatedTextureComponent && b)
inline

Definition at line 171 of file entity.hpp.

◆ operator=() [2/2]

AnimatedTextureComponent & AnimatedTextureComponent::operator= ( AnimatedTextureComponent & b)
inline

Definition at line 158 of file entity.hpp.

◆ PlayAnimation()

void AnimatedTextureComponent::PlayAnimation ( bool loop = false,
float delay = 0.0f )

Definition at line 123 of file entity.cpp.

Member Data Documentation

◆ m_AnimatedTexture

std::shared_ptr<SpriteSheet> AnimatedTextureComponent::m_AnimatedTexture

Definition at line 189 of file entity.hpp.

◆ m_AnimationDelay

float AnimatedTextureComponent::m_AnimationDelay

Definition at line 193 of file entity.hpp.

◆ m_AnimationIndex

int AnimatedTextureComponent::m_AnimationIndex

Definition at line 194 of file entity.hpp.

◆ m_Height

float AnimatedTextureComponent::m_Height

Definition at line 190 of file entity.hpp.

◆ m_LastAnimationTime

float AnimatedTextureComponent::m_LastAnimationTime

Definition at line 195 of file entity.hpp.

◆ m_Layer

int AnimatedTextureComponent::m_Layer

Definition at line 191 of file entity.hpp.

◆ m_LoopAnimation

bool AnimatedTextureComponent::m_LoopAnimation

Definition at line 192 of file entity.hpp.

◆ m_PlayAnimation

bool AnimatedTextureComponent::m_PlayAnimation

Definition at line 192 of file entity.hpp.

◆ m_UID

uint32_t AnimatedTextureComponent::m_UID

Definition at line 196 of file entity.hpp.

◆ m_Width

float AnimatedTextureComponent::m_Width

Definition at line 190 of file entity.hpp.


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