Animations.h 699 B

123456789101112131415161718192021222324252627282930313233343536373839
  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. private:
  27. std::vector<Animation*> _animations;
  28. };
  29. }
  30. #endif