123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475 |
- #ifndef ANIMATION_H_INCLUDED
- #define ANIMATION_H_INCLUDED
- #include <SDL/SDL.h>
- #include <iostream>
- #include <vector>
- class Animation
- {
- public:
- Animation(Uint32 tempsFrequence);
- virtual ~Animation();
- void play();
- void pause();
- void stop();
- virtual void coller(SDL_Surface* support, int x, int y, bool centrer=0)=0;
- protected:
- std::vector<SDL_Surface*> m_bande;
- const Uint32 m_tempsFrequence;
- Uint32 m_tempsDepart;
- Uint16 m_imageActive;
- };
- #endif
|