Remove horrendous useless commented code.

This commit is contained in:
SeanOMik 2020-07-07 00:51:32 -05:00
parent c395a72e87
commit 9013efcf31
No known key found for this signature in database
GPG Key ID: FA4D55AC05268A88
3 changed files with 0 additions and 43 deletions

View File

@ -23,9 +23,6 @@ namespace simpleengine {
bool IsHorizontallyFlipped() const; bool IsHorizontallyFlipped() const;
bool IsVerticallyFlipped() const; bool IsVerticallyFlipped() const;
/*void Play();
void Pause();*/
private: private:
sf::Sprite &sprite; sf::Sprite &sprite;
sf::Texture &texture_sheet; sf::Texture &texture_sheet;

View File

@ -35,10 +35,6 @@ namespace simpleengine {
// Animation class specific // Animation class specific
void UpdateAnimation(const std::string& animation_name, const float& delta_time); void UpdateAnimation(const std::string& animation_name, const float& delta_time);
Animation& GetAnimation(const std::string& animation_name); 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::Sprite &GetSprite() const;
sf::Texture &GetTextureSheet() const; sf::Texture &GetTextureSheet() const;

View File

@ -47,42 +47,6 @@ const std::map<std::string, simpleengine::Animation> &simpleengine::AnimationCom
return animations; 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) { simpleengine::Animation& simpleengine::AnimationComponent::GetAnimation(const std::string &animation_name) {
auto anim = animations.find(animation_name); auto anim = animations.find(animation_name);
if (anim != animations.end()) { if (anim != animations.end()) {