home *** CD-ROM | disk | FTP | other *** search
/ NEXT Generation 27 / NEXT27.iso / pc / demos / emperor / dx3.exe / SDK / SAMPLES / IKLOWNS / CGDLIST.H < prev    next >
C/C++ Source or Header  |  1996-08-28  |  2KB  |  62 lines

  1. /*===========================================================================*\
  2. |
  3. |  File:        cgdlist.h
  4. |
  5. |  Description: 
  6. |       
  7. |-----------------------------------------------------------------------------
  8. |
  9. |  Copyright (C) 1995-1996 Microsoft Corporation.  All Rights Reserved.
  10. |
  11. |  Written by Moss Bay Engineering, Inc. under contract to Microsoft Corporation
  12. |
  13. \*===========================================================================*/
  14.  
  15. /**************************************************************************
  16.  
  17.     (C) Copyright 1995-1996 Microsoft Corp.  All rights reserved.
  18.  
  19.     You have a royalty-free right to use, modify, reproduce and 
  20.     distribute the Sample Files (and/or any modified version) in 
  21.     any way you find useful, provided that you agree that 
  22.     Microsoft has no warranty obligations or liability for any 
  23.     Sample Application Files which are modified. 
  24.  
  25.     we do not recomend you base your game on IKlowns, start with one of
  26.     the other simpler sample apps in the GDK
  27.  
  28.  **************************************************************************/
  29.  
  30. #ifndef CGDLIST_H
  31. #define CGDLIST_H
  32.  
  33. #include "cgupdate.h"
  34.  
  35. class CGameLevel;
  36. class CGameGraphic;
  37. class CGameScreen;
  38.  
  39. class CGameDisplayList
  40. {
  41. public:
  42.     CGameDisplayList(char* pFileName, char* pLevelName, CGameLevel* pLevel);
  43.     virtual ~CGameDisplayList();
  44.  
  45.     virtual void Update(CGameLevel* pLevel, CGameUpdateList* pUpdate);
  46.     virtual void Render(CGameLevel* pLevel, CGameScreen* pScreen, CGameUpdateList* pUpdate);
  47.  
  48.     virtual void Insert( CGameGraphic* pGraphic );
  49.     virtual void Remove( CGameGraphic* pGraphic );
  50.     virtual void ReSort();
  51.  
  52.     virtual CGameGraphic * First()
  53.     {
  54.         return mpHead;
  55.     }
  56.  
  57. protected:
  58.     CGameGraphic* mpHead;   // ptr to head of our linked list
  59. };
  60.  
  61. #endif // CGDLIST_H
  62.