SpriteManager.h
上传用户:sycq158
上传日期:2008-10-22
资源大小:15361k
文件大小:1k
- // SpriteManager.h: interface for the CSpriteManager class.
- //
- //////////////////////////////////////////////////////////////////////
- #if !defined(AFX_SPRITEMANAGER_H__48D20543_2F83_4732_93E8_378A19DC42A0__INCLUDED_)
- #define AFX_SPRITEMANAGER_H__48D20543_2F83_4732_93E8_378A19DC42A0__INCLUDED_
- #if _MSC_VER > 1000
- #pragma once
- #endif // _MSC_VER > 1000
- class CSpriteManager
- {
- public:
- void Destroy();
- int KillSpritesColliWith(CSprite* pSprite);
- bool IsHit(RECT& rc);
- void SetCollAndPathFn(bool (*pfnCollision)(RECT&) , void (*pfnFindPath)(CSprite*));
- void RemoveSprite(CSprite *pSprite);
- void Draw(LPDIRECTDRAWSURFACE7 pdds);
- void AddSprite(CSprite* pSprite);
- void Update();
- CSpriteManager();
- virtual ~CSpriteManager();
- protected:
- std::list<CSprite*> m_pSpriteList;
- bool (*m_pfnCollision)(RECT& rcRect);
- void (*m_pfnFindPath)(CSprite* pSprite);
- };
- #endif // !defined(AFX_SPRITEMANAGER_H__48D20543_2F83_4732_93E8_378A19DC42A0__INCLUDED_)