// Animation.h: interface for the CAnimation class. // ////////////////////////////////////////////////////////////////////// #if !defined(AFX_ANIMATION_H__FEC454E1_14B3_43B1_9020_29D420E002B3__INCLUDED_) #define AFX_ANIMATION_H__FEC454E1_14B3_43B1_9020_29D420E002B3__INCLUDED_ #if _MSC_VER > 1000 #pragma once #endif // _MSC_VER > 1000 #include class CMyBitmap; class CAnimation { public: void step(bool reset=false); void draw(CDC *pDC); CAnimation(int nBitmaps, char *filePrefix, int positions[][2], CWnd *pWnd, COLORREF transColor); virtual ~CAnimation(); private: CWnd * m_pWnd; CRect *m_positions; COLORREF m_transColor; int m_state; int m_nBitmaps; std::vector m_bitmaps; }; #endif // !defined(AFX_ANIMATION_H__FEC454E1_14B3_43B1_9020_29D420E002B3__INCLUDED_)