#pragma once #include "GameObject.h" #include "Resource.h" class SingleAnimation : public GameObject { private: Resource *resource; int currentImage; double nextImage; public: SingleAnimation( float x, float y, float width, float height, Resource *resource ); ~SingleAnimation(); // gibt 1 zurück wenn die annimation vorbei ist bool tick( double zeit ); };