home *** CD-ROM | disk | FTP | other *** search
- Save Format v1.3
- @begin ClassFile "Point"
- Exported 0;
-
- @begin-code BaseClassList
-
- public WObject
-
- @end-code;
-
- @begin UserFunction "Point()"
- GencodeSrcLine 16;
- FunctionName "Point::Point()";
- @end;
-
- @begin UserFunction "Prototype for Point()"
- Private 1;
- GencodeSrcLine 29;
- FunctionName "Point::Prototype for Point()";
- @end;
-
- @begin UserFunction "~Point()"
- GencodeSrcLine 20;
- FunctionName "Point::~Point()";
- @end;
-
- @begin UserFunction "Prototype for ~Point()"
- Private 1;
- GencodeSrcLine 31;
- FunctionName "Point::Prototype for ~Point()";
- @end;
-
- @begin UserFunction "Randomize( int minX, int maxX, int minY, int maxY, int minZ=0, int maxZ=0 )"
- GencodeSrcLine 24;
- FunctionName "Point::Randomize( int minX, int maxX, int minY, int maxY, int minZ=0, int maxZ=0 )";
- @end;
-
- @begin UserFunction "Prototype for Randomize( int minX, int maxX, int minY, int maxY, int minZ=0, int maxZ=0 )"
- Private 1;
- GencodeSrcLine 33;
- FunctionName "Point::Prototype for Randomize( int minX, int maxX, int minY, int maxY, int minZ=0, int maxZ=0 )";
- @end;
-
- @begin HPPPrefixBlock
- @begin-code HPPPrefix
-
- // Declarations added here will be included at the top of the .HPP file
-
- @end-code;
- GencodeSrcLine 11;
- @end;
-
- @begin CPPPrefixBlock
- @begin-code CPPPrefix
-
- // Code added here will be included at the top of the .CPP file
-
- // Include definitions for resources.
- #include "WRes.h"
-
- @end-code;
- GencodeSrcLine 11;
- @end;
-
- @begin ClassContentsBlock
- @begin-code ClassContents
-
- public:
- WLong _x;
- WLong _y;
- WLong _z;
-
- private:
- // add your private instance data here
- protected:
- // add your protected instance data here
-
- @end-code;
- GencodeSrcLine 18;
- @end;
-
- @begin-code GeneratedClassContents
-
-
- @end-code;
-
- @begin-code Code "Point::Point()"
-
- Point::Point()
- {
-
- }
-
- @end-code;
-
- @begin-code Code "Point::Prototype for Point()"
-
- public:
- Point();
-
- @end-code;
-
- @begin-code Code "Point::~Point()"
-
- Point::~Point()
- {
-
- }
-
- @end-code;
-
- @begin-code Code "Point::Prototype for ~Point()"
-
- public:
- ~Point();
-
- @end-code;
-
- @begin-code Code "Point::Randomize( int minX, int maxX, int minY, int maxY, int minZ=0, int maxZ=0 )"
-
- void Point::Randomize( int minX, int maxX, int minY, int maxY, int minZ, int maxZ )
- /*********************************************************************************/
- {
- WTraceMember();
-
- _x = ( rand() % ( maxX - minX ) ) + minX;
- _y = ( rand() % ( maxY - minY ) ) + minY;
- if( minZ != maxZ ) {
- _z = ( rand() % ( maxZ - minZ ) ) + minZ;
- }
- }
-
- @end-code;
-
- @begin-code Code "Point::Prototype for Randomize( int minX, int maxX, int minY, int maxY, int minZ=0, int maxZ=0 )"
-
- public:
- void Randomize( int minX, int maxX, int minY, int maxY, int minZ=0, int maxZ=0 );
-
- @end-code;
- @end;
-