Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

39 lines
1.1 KiB

  1. /*************************************************
  2. * spritelst.h *
  3. * *
  4. * Copyright (C) 1995-1999 Microsoft Inc. *
  5. * *
  6. *************************************************/
  7. // spritlst.h : header file
  8. //
  9. // CSpriteList class
  10. //
  11. class CSpriteList : private CObList
  12. {
  13. DECLARE_SERIAL(CSpriteList)
  14. public:
  15. CSpriteList();
  16. ~CSpriteList();
  17. void RemoveAll();
  18. BOOL Insert(CSprite *pSprite);
  19. void Reorder(CSprite *pSprite);
  20. CSprite *Remove(CSprite *pSprite);
  21. CSprite *GetNext(POSITION &pos)
  22. {return (CSprite *) CObList::GetNext(pos);}
  23. CSprite *GetPrev(POSITION &pos)
  24. {return (CSprite *) CObList::GetPrev(pos);}
  25. POSITION GetTailPosition() const
  26. {return CObList::GetTailPosition();}
  27. POSITION GetHeadPosition() const
  28. {return CObList::GetHeadPosition();}
  29. CSprite *HitTest(CPoint point);
  30. virtual void Serialize(CArchive& ar);
  31. BOOL IsEmpty()
  32. {return CObList::IsEmpty();}
  33. public:
  34. CSpriteListNotifyObj m_NotifyObj;
  35. };