SingleAnnimation.h 387 B

123456789101112131415161718
  1. #pragma once
  2. #include "GameObject.h"
  3. #include "Resource.h"
  4. class SingleAnimation : public GameObject
  5. {
  6. private:
  7. Resource *resource;
  8. int currentImage;
  9. double nextImage;
  10. public:
  11. SingleAnimation( float x, float y, float width, float height, Resource *resource );
  12. ~SingleAnimation();
  13. // gibt 1 zurück wenn die annimation vorbei ist
  14. bool tick( double zeit );
  15. };