| 
                Last change
                  on this file since 658 was
                  646,
                  checked in by landauf, 18 years ago
           | 
        
        
          
              - added very bad collision detection (presentation hack 
 )
 - added explosions
 - fixed bug in ParticleInterface (it tried to delete SceneManager)
 
 
AND: 
 
- fixed one of the most amazing bugs ever! (the game crashed when I deleted an object through a timer-function. because the timer-functions is called by an iterator, the iterator indirectly delted its object. by overloading the (it++) operator, i was able to solve this problem)
  
           | 
        
        | 
            File size:
            517 bytes
           | 
      
      
        
  | Line |   | 
|---|
| 1 | #ifndef _Explosion_H__ | 
|---|
| 2 | #define _Explosion_H__ | 
|---|
| 3 |  | 
|---|
| 4 | #include "../particle/ParticleInterface.h" | 
|---|
| 5 | #include "WorldEntity.h" | 
|---|
| 6 | #include "Timer.h" | 
|---|
| 7 |  | 
|---|
| 8 | namespace orxonox | 
|---|
| 9 | { | 
|---|
| 10 |     class Explosion : public WorldEntity | 
|---|
| 11 |     { | 
|---|
| 12 |         public: | 
|---|
| 13 |             Explosion(WorldEntity* owner = 0); | 
|---|
| 14 |             virtual ~Explosion(); | 
|---|
| 15 |             void destroyObject(); | 
|---|
| 16 |  | 
|---|
| 17 |         private: | 
|---|
| 18 |             Timer<Explosion> destroyTimer_; | 
|---|
| 19 |             float lifetime_; | 
|---|
| 20 |             particle::ParticleInterface* particle_; | 
|---|
| 21 |     }; | 
|---|
| 22 | } | 
|---|
| 23 |  | 
|---|
| 24 | #endif | 
|---|
       
      
      Note: See 
TracBrowser
        for help on using the repository browser.