Animations.h 804 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  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. private:
  29. std::vector<Animation*> _animations;
  30. };
  31. }
  32. #endif