Animations.h 851 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. #ifndef LIBRARYANIMATIONS_H_
  2. #define LIBRARYANIMATIONS_H_
  3. #include "Object.h"
  4. #include "Animation.h"
  5. namespace gameplay
  6. {
  7. /**
  8. * Animations contains all of the animations in the GamePlay Binary file.
  9. */
  10. class Animations : public Object
  11. {
  12. public:
  13. /**
  14. * Constructor.
  15. */
  16. Animations(void);
  17. /**
  18. * Destructor.
  19. */
  20. virtual ~Animations(void);
  21. virtual unsigned int getTypeId(void) const;
  22. virtual const char* getElementName(void) const;
  23. virtual void writeBinary(FILE* file);
  24. virtual void writeText(FILE* file);
  25. void add(Animation* animation);
  26. unsigned int getAnimationCount() const;
  27. Animation* getAnimation(unsigned int index) const;
  28. void removeAnimation(unsigned int index);
  29. private:
  30. std::vector<Animation*> _animations;
  31. };
  32. }
  33. #endif