blob: 49e0053454d0779e903cdbc940024034a71f5c81 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
//--------------------------------------------------------------------------------------------------
// CSpriteFrame.
// A class to represent a frame (image) of a aprite animation.
//--------------------------------------------------------------------------------------------------
#ifndef __CSPRITEFRAME_H__
#define __CSPRITEFRAME_H__
#include <SDL.h>
#include "CSurface.h"
class CSpriteFrame
{
public:
CSpriteFrame(void);
CSpriteFrame(CSurface *aImage);
~CSpriteFrame(void);
void destroy(void);
CSurface *getImage(void);
int getFrameTime(void);
private:
// Image of the frame.
CSurface *mImage;
// Time duration of the frame.
int mFrameTime;
};
#endif /* __CSPRITEFRAME_H__ */
|