Changeset 8755 for trunk/MagicSoft/Mars/mtools/MineSweeper.cc
- Timestamp:
- 10/10/07 19:59:43 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mtools/MineSweeper.cc
r2173 r8755 175 175 } 176 176 177 // ------------------------------------------------------------------------ 178 // 179 // default constructor 180 // 181 MineSweeper::MineSweeper() 182 : fGeomCam(NULL), fDone(NULL), fShow(NULL), fW(0), fH(0), fDrawingPad(NULL), fIsAllocated(kFALSE) 183 { 184 SetNewCamera(new MGeomCamMagic); 185 177 void MineSweeper::Init() 178 { 186 179 // 187 180 // Make sure, that the object is destroyed when the canvas/pad is … … 193 186 194 187 Draw(); 188 } 189 190 // ------------------------------------------------------------------------ 191 // 192 // default constructor 193 // 194 MineSweeper::MineSweeper() 195 : fGeomCam(NULL), fDone(NULL), fShow(NULL), fW(0), fH(0), fDrawingPad(NULL), fIsAllocated(kFALSE) 196 { 197 SetNewCamera(new MGeomCamMagic); 198 Init(); 199 } 200 201 MineSweeper::MineSweeper(const MGeomCam &geom) 202 : fGeomCam(NULL), fDone(NULL), fShow(NULL), fW(0), fH(0), fDrawingPad(NULL), fIsAllocated(kFALSE) 203 { 204 SetNewCamera(static_cast<MGeomCam*>(geom.Clone())); 205 Init(); 195 206 } 196 207
Note:
See TracChangeset
for help on using the changeset viewer.