Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Sep 26, 2009, 2:05:30 AM (15 years ago)
Author:
landauf
Message:

Added destroy() function to OrxonoxClass.
Removed destroy() functions from some subclasses.
Expanded Timer to accept Functors of other classes too.

Location:
code/branches/core5/src/modules/weapons
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • code/branches/core5/src/modules/weapons/MuzzleFlash.cc

    r5738 r5791  
    4141        RegisterObject(MuzzleFlash);
    4242        this->setScale(0.1f);
    43        
     43
    4444        this->delayTimer_.setTimer(0.1f, false, this, createExecutor(createFunctor(&MuzzleFlash::destroy)));
    45 
    4645    }
    47 
    48     void MuzzleFlash::destroy()
    49     {
    50         delete this;
    51     }
    52  
    5346}
  • code/branches/core5/src/modules/weapons/MuzzleFlash.h

    r5738 r5791  
    4343            virtual ~MuzzleFlash() {}
    4444
    45 
    46 
    4745        private:
    48             void destroy();
    4946            Timer<MuzzleFlash> delayTimer_;
    50 
    5147    };
    5248}
Note: See TracChangeset for help on using the changeset viewer.