|
// 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_)
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.