From a9e3a2b212fb5b60bb0479fa999ddeeaa0355598 Mon Sep 17 00:00:00 2001 From: Ekaitz Zarraga Date: Sun, 13 Nov 2022 18:21:41 +0100 Subject: Use base constructors to reduce code size --- src/graphics/animation.h | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'src/graphics/animation.h') diff --git a/src/graphics/animation.h b/src/graphics/animation.h index 503b75d..010a64a 100644 --- a/src/graphics/animation.h +++ b/src/graphics/animation.h @@ -28,9 +28,7 @@ namespace Graphics{ class OneShotAnimation : public Animation { public: - OneShotAnimation(); - OneShotAnimation(const sf::Texture& texture, int count, int - switchTime, int height, int width, int row); + using Animation::Animation; sf::IntRect& next(int deltaTime) override; bool finished() override; }; @@ -39,9 +37,7 @@ namespace Graphics{ private: bool up_; public: - BouncingAnimation(); - BouncingAnimation(const sf::Texture& texture, int count, int - switchTime, int height, int width, int row); + using Animation::Animation; ~BouncingAnimation(); sf::IntRect& next(int deltaTime) override; }; -- cgit v1.2.3