Remove horrendous useless commented code.
This commit is contained in:
parent
c395a72e87
commit
9013efcf31
|
@ -23,9 +23,6 @@ namespace simpleengine {
|
|||
|
||||
bool IsHorizontallyFlipped() const;
|
||||
bool IsVerticallyFlipped() const;
|
||||
|
||||
/*void Play();
|
||||
void Pause();*/
|
||||
private:
|
||||
sf::Sprite &sprite;
|
||||
sf::Texture &texture_sheet;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -47,42 +47,6 @@ const std::map<std::string, simpleengine::Animation> &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()) {
|
||||
|
|
Loading…
Reference in New Issue