Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Apr 23, 2015, 4:19:02 PM (9 years ago)
Author:
meggiman
Message:

Implemented all necessary classes. No the weapon works without bugs.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/weaponFS15/src/modules/weapons/projectiles/GravityBomb.h

    r10369 r10391  
    6464                        virtual bool collidesAgainst(WorldEntity* otherObject, const btCollisionShape* cs, btManifoldPoint& contactPoint);
    6565                        void detonate();
    66 
    6766                private:
    68 
    69                 float velocityAtLastTick_; //Used to check wether the Object is already accelarating in the oposite direction to detect the time to detonate it.
     67                bool isDetonated_; //Used to check whether the Bomb has to be destroyed during next tick.
     68                float timeToLife_; //Time the bomb flies before it explodes.
    7069
    7170        };
Note: See TracChangeset for help on using the changeset viewer.