DXSpriteList.h
上传用户:wymy58
上传日期:2007-01-07
资源大小:2086k
文件大小:1k
源码类别:

DirextX编程

开发平台:

Visual C++

  1. // Copyright (C) 1998-1999 DXGuide.  All Rights Reserved.
  2. // File: DXSpriteList.h
  3. #ifndef _DXSPRITELIST__H
  4. #define _DXSPRITELIST__H
  5. #if _MSC_VER >= 1000
  6. #pragma once
  7. #endif // _MSC_VER >= 1000
  8. class CDXSprite;
  9. class CDDSurface;
  10. // This class provides a list of CDXSprite objects.
  11. class CDXSpriteList : public  CObList
  12. {
  13. DECLARE_SERIAL(CDXSpriteList)
  14. public:
  15. CDXSpriteList(void);
  16. ~CDXSpriteList();
  17. public:
  18. void RemoveAll(void);
  19. bool Insert(CDXSprite*  pSprite);
  20. void Reorder(CDXSprite*  pSprite);
  21. CDXSprite* Remove(CDXSprite*  pSprite);
  22. CDXSprite* GetNext(POSITION&  pos);
  23. CDXSprite* GetPrev(POSITION&  pos);
  24. POSITION GetTailPosition(void) const;
  25. POSITION GetHeadPosition(void) const;
  26. CDXSprite* HitTest(int  nX, int  nY);
  27. bool IsEmpty(void) const;
  28. void Draw(CDDSurface*  lpDDS,
  29. LPCRECT  lprcClip = NULL);
  30. public:
  31. virtual void Serialize(CArchive&  ar);
  32. };
  33. #include "DXSpriteList.inl"
  34. #endif // _DXSPRITELIST__H