DXSpriteList.h
资源名称:DXGuide.zip [点击查看]
上传用户:wymy58
上传日期:2007-01-07
资源大小:2086k
文件大小:1k
源码类别:
DirextX编程
开发平台:
Visual C++
- // Copyright (C) 1998-1999 DXGuide. All Rights Reserved.
- // File: DXSpriteList.h
- #ifndef _DXSPRITELIST__H
- #define _DXSPRITELIST__H
- #if _MSC_VER >= 1000
- #pragma once
- #endif // _MSC_VER >= 1000
- class CDXSprite;
- class CDDSurface;
- // This class provides a list of CDXSprite objects.
- class CDXSpriteList : public CObList
- {
- DECLARE_SERIAL(CDXSpriteList)
- public:
- CDXSpriteList(void);
- ~CDXSpriteList();
- public:
- void RemoveAll(void);
- bool Insert(CDXSprite* pSprite);
- void Reorder(CDXSprite* pSprite);
- CDXSprite* Remove(CDXSprite* pSprite);
- CDXSprite* GetNext(POSITION& pos);
- CDXSprite* GetPrev(POSITION& pos);
- POSITION GetTailPosition(void) const;
- POSITION GetHeadPosition(void) const;
- CDXSprite* HitTest(int nX, int nY);
- bool IsEmpty(void) const;
- void Draw(CDDSurface* lpDDS,
- LPCRECT lprcClip = NULL);
- public:
- virtual void Serialize(CArchive& ar);
- };
- #include "DXSpriteList.inl"
- #endif // _DXSPRITELIST__H