1 #ifndef _ANIMATION_FACTORY_ 2 #define _ANIMATION_FACTORY_ 3 4 #include "Animation.h" 5 6 class AnimationFactory{ 7 public: 8 AnimationFactory(); 9 virtual ~AnimationFactory(); 10 Animation* getByName(const char* name); 11 Animation* getByNumber(unsigned int n); 12 void loadAnimation(char* spriteName, char* path, bool loop, char* knownAs); 13 Animation* getLast(); 14 int size(); 15 void list(); 16 private: 17 vector<Animation*> store; 18 }; 19 20 #endif 21