00001 #ifndef ANIMATION_H 00002 #define ANIMATION_H 00003 00004 #include "XMLResource.h" 00005 #pragma once 00006 00007 00011 class CAnimation : public CXMLResource 00012 { 00013 public: 00014 00015 CAnimation(); 00016 virtual ~CAnimation(); 00022 virtual int Animate(double fTimePerFrame); 00028 virtual int Pause(double fPauseTime = INFINITE); 00034 virtual int Resume(double fTimeToWait = 0); 00039 virtual int Stop(); 00044 virtual void Destroy(); 00050 virtual int LoadXML(TiXmlNode *pDataNode, CString strFilename); 00056 virtual int SaveXML(TiXmlNode *pDataNode, CString strFilename); 00061 virtual bool IsOfType(eEntityType eType); 00062 00063 }; 00064 00065 #endif