// // ISpriteAnimator.h // SteveMaggieCpp // // Created by Katarzyna Kalinowska-Górska on 06.06.2017. // // #ifndef ISpriteAnimator_h #define ISpriteAnimator_h #include "cocos2d.h" class ISpriteAnimator : public cocos2d::Ref { public: static int AnimationTagUnknownAnimation; union AnimParam { int intParam; float floatParam; bool boolParam; }; //this should return action tag virtual int animateSprite(cocos2d::Sprite* sprite, int animationTag, std::vector animParams, std::function callback) = 0; // virtual int animateSprites(std::vector sprites, std::string animationName, std::vector> animParams){ // for(int i = 0; i < sprites.size(); ++i){ // animateSprite(sprites[i], animationName, animParams[i]); // } // } // virtual int animateSprites(std::vector sprites, std::string animationName, std::vector animParams){ // for(int i = 0; i < sprites.size(); ++i){ // animateSprite(sprites[i], animationName, animParams); // } // } }; #endif /* ISpriteAnimator_h */