home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Collection of Hack-Phreak Scene Programs
/
cleanhpvac.zip
/
cleanhpvac
/
WD_SRC.ZIP
/
SOURCE
/
ARRAYS.HPP
< prev
next >
Wrap
C/C++ Source or Header
|
1994-12-19
|
749b
|
34 lines
class MPointerArray;
class CLineArray : public MPointerArray
{
public:
// Just returns a CLine in that index.
CLine *GetLine(Index element) {return (CLine *)Get(element);}
// Allocates all of its elements as CLines.
BOOL AllocateElements();
// UnAllocates all of its elements.
BOOL UnAllocateElements();
};
class CPointArray : public MPointerArray
{
public:
// Just returns a CPoint in that index.
CPoint *GetPoint(Index element) {return (CPoint *)Get(element);}
// Allocates all of its elements as CPoint.
BOOL AllocateElements();
// UnAllocates all of its elements.
BOOL UnAllocateElements();
};