Ignore:
Timestamp:
10/10/07 19:59:43 (17 years ago)
Author:
tbretz
Message:
*** empty log message ***
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mtools/MineSweeper.cc

    r2173 r8755  
    175175}
    176176
    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 
     177void MineSweeper::Init()
     178{
    186179    //
    187180    // Make sure, that the object is destroyed when the canvas/pad is
     
    193186
    194187    Draw();
     188}
     189
     190// ------------------------------------------------------------------------
     191//
     192//  default constructor
     193//
     194MineSweeper::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
     201MineSweeper::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();
    195206}
    196207
Note: See TracChangeset for help on using the changeset viewer.