1 /******************************
2 ** Tsunagari Tile Engine **
4 ** Copyright 2011 OmegaSDG **
5 ******************************/
12 #include <Gosu/Graphics.hpp>
14 #include "resourcer.h"
25 void addFrame(ImageRef frame
);
26 void setFrameLen(int milliseconds
);
28 bool needsUpdate(int milliseconds
) const;
29 void updateFrame(int milliseconds
);
30 Gosu::Image
* image() const;
33 //! List of images in animation.
34 std::vector
<ImageRef
> frames
;
36 //! Current graphic displaying on screen.
39 //! Are we animated? Same as frames.size() > 1
42 //! Length of each frame in animation.
45 //! Total length of one complete cycle through animation.
48 //! Index of frame currently displaying on screen.