Animation.cpp 529 B

123456789101112131415161718192021222324252627282930313233
  1. #include "Animation.h"
  2. Animation::Animation(Uint32 tempsFrequence)
  3. :m_tempsFrequence(tempsFrequence),m_tempsDepart(0),m_imageActive(0)
  4. {
  5. }///Animation()
  6. Animation::~Animation()
  7. {
  8. while (!m_bande.empty())
  9. {
  10. if (m_bande.back()!=0)
  11. SDL_FreeSurface(m_bande.back());
  12. m_bande.pop_back();
  13. }
  14. }///~Animation()
  15. void Animation::play()
  16. {
  17. m_tempsDepart=SDL_GetTicks();
  18. }///play()
  19. void Animation::pause()
  20. {
  21. //Set pause --'
  22. }///pause()
  23. void Animation::stop()
  24. {
  25. //Stop ! *0*
  26. }///stop()