1 /******************************
2 ** Tsunagari Tile Engine **
4 ** Copyright 2011 OmegaSDG **
5 ******************************/
12 #include <Gosu/Graphics.hpp>
14 #include "resourcer.h"
24 Animation(ImageRef frame
);
26 void addFrame(ImageRef frame
);
27 void setFrameLen(int milliseconds
);
29 bool needsRedraw(int milliseconds
) const;
30 void updateFrame(int milliseconds
);
31 Gosu::Image
* frame() const;
34 //! List of images in animation.
35 std::vector
<ImageRef
> frames
;
37 //! Current graphic displaying on screen.
40 //! Are we animated? Same as frames.size() > 1
43 //! Length of each frame in animation.
46 //! Total length of one complete cycle through animation.
49 //! Index of frame currently displaying on screen.