home *** CD-ROM | disk | FTP | other *** search
/ Collection of Hack-Phreak Scene Programs / cleanhpvac.zip / cleanhpvac / WD_SRC.ZIP / SOURCE / ARRAYS.HPP < prev    next >
C/C++ Source or Header  |  1994-12-19  |  749b  |  34 lines

  1. class MPointerArray;
  2.  
  3.  
  4. class CLineArray : public MPointerArray
  5. {
  6. public:
  7.     // Just returns a CLine in that index.
  8.     CLine    *GetLine(Index element)    {return (CLine *)Get(element);}
  9.     
  10.     // Allocates all of its elements as CLines.
  11.     BOOL    AllocateElements();
  12.     
  13.     // UnAllocates all of its elements.
  14.     BOOL    UnAllocateElements();
  15. };                                             
  16.  
  17.  
  18. class CPointArray : public MPointerArray
  19. {
  20. public:
  21.     // Just returns a CPoint in that index.
  22.     CPoint    *GetPoint(Index element)    {return (CPoint *)Get(element);}
  23.     
  24.     // Allocates all of its elements as CPoint.
  25.     BOOL    AllocateElements();
  26.     
  27.     // UnAllocates all of its elements.
  28.     BOOL UnAllocateElements();
  29. };                                             
  30.  
  31.  
  32.  
  33.  
  34.