Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Oct 2, 2015, 11:03:31 PM (10 years ago)
Author:
fvultier
Message:

Improved documentation

Location:
code/branches/towerdefenseFabien/src/modules/weapons/projectiles
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • code/branches/towerdefenseFabien/src/modules/weapons/projectiles/IceGunProjectile.cc

    r10606 r10608  
    7676
    7777    bool IceGunProjectile::collidesAgainst(WorldEntity* otherObject, const btCollisionShape* cs, btManifoldPoint& contactPoint)
    78     {
     78    {       
    7979        bool bCollision = Projectile::collidesAgainst(otherObject, cs, contactPoint);
    8080
    8181        if (bCollision)
    8282        {
     83            // If there was a collision, attach a IceGunFreezer to the hit object.
    8384            IceGunFreezer* freezer = new IceGunFreezer(this->getContext());
    8485            freezer->setFreezeTime(freezeTime_);
     
    8990            freezer->setPosition(Vector3(0,0,0));
    9091            freezer->translate(offset, WorldEntity::World);
     92            // Start the freezing effect.
    9193            freezer->startFreezing();
    9294        }
  • code/branches/towerdefenseFabien/src/modules/weapons/projectiles/IceGunProjectile.h

    r10606 r10608  
    4747    /**
    4848    @brief
    49         The IceGunProjectile is a projectile that may split up into many child projectiles.
     49        The IceGunProjectile is a projectile that attaches a IceGunFreezer to the hit object. This object gets slowed down by the IceGunFreezer.
    5050    @author
    5151        Fabien Vultier
Note: See TracChangeset for help on using the changeset viewer.