diff --git a/include/simpleengine/animation.h b/include/simpleengine/animation.h index 31a9a06..ae027ee 100644 --- a/include/simpleengine/animation.h +++ b/include/simpleengine/animation.h @@ -23,9 +23,6 @@ namespace simpleengine { bool IsHorizontallyFlipped() const; bool IsVerticallyFlipped() const; - - /*void Play(); - void Pause();*/ private: sf::Sprite &sprite; sf::Texture &texture_sheet; diff --git a/include/simpleengine/components/animation_component.h b/include/simpleengine/components/animation_component.h index fff672c..d7d53f4 100644 --- a/include/simpleengine/components/animation_component.h +++ b/include/simpleengine/components/animation_component.h @@ -35,10 +35,6 @@ namespace simpleengine { // Animation class specific void UpdateAnimation(const std::string& animation_name, const float& delta_time); Animation& GetAnimation(const std::string& animation_name); - /*void FlipAnimationHorizontally(const std::string& animation_name); - void FlipAnimationVertically(const std::string& animation_name); - bool IsAnimationFlippedHorizontally(const std::string& animation_name); - bool IsAnimationFlippedVertically(const std::string& animation_name);*/ sf::Sprite &GetSprite() const; sf::Texture &GetTextureSheet() const; diff --git a/src/components/animation_component.cpp b/src/components/animation_component.cpp index 4720d4f..d3e18b0 100644 --- a/src/components/animation_component.cpp +++ b/src/components/animation_component.cpp @@ -47,42 +47,6 @@ const std::map &simpleengine::AnimationCom return animations; } -/*void simpleengine::AnimationComponent::FlipAnimationHorizontally(const std::string &animation_name) { - auto anim = animations.find(animation_name); - if (anim != animations.end()) { - anim->second.FlipHorizontally(); - } else { - throw std::runtime_error("Animation, \"" + animation_name + "\", was not found!"); - } -} - -void simpleengine::AnimationComponent::FlipAnimationVertically(const std::string &animation_name) { - auto anim = animations.find(animation_name); - if (anim != animations.end()) { - anim->second.FlipVertically(); - } else { - throw std::runtime_error("Animation, \"" + animation_name + "\", was not found!"); - } -} - -void simpleengine::AnimationComponent::IsAnimationFlippedHorizontally(const std::string &animation_name) { - auto anim = animations.find(animation_name); - if (anim != animations.end()) { - return anim->second.IsHorizontallyFlipped(); - } else { - throw std::runtime_error("Animation, \"" + animation_name + "\", was not found!"); - } -} - -void simpleengine::AnimationComponent::IsAnimationFlippedVertically(const std::string &animation_name) { - auto anim = animations.find(animation_name); - if (anim != animations.end()) { - return anim->second.IsHorizontallyFlipped(); - } else { - throw std::runtime_error("Animation, \"" + animation_name + "\", was not found!"); - } -}*/ - simpleengine::Animation& simpleengine::AnimationComponent::GetAnimation(const std::string &animation_name) { auto anim = animations.find(animation_name); if (anim != animations.end()) {