Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

Improved documentation

File:
1 edited

Legend:

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

    r10606 r10608  
    9292    }   
    9393
     94    /**
     95    @brief
     96        Try to slow down the WorldEntity where this is attached to. It is only possible to slow down a SpaceShip.
     97    */
    9498    void IceGunFreezer::startFreezing()
    9599    {
    96100        WorldEntity* parent = this->getParent();
    97101
     102        // Check if the freezer is attached to a parent and check if the parent is a SpaceShip
    98103        if (parent != NULL && parent->isA(Class(SpaceShip)))
    99104        {
    100105            freezedSpaceShip_ = orxonox_cast<SpaceShip*>(parent);
     106            //Slow down the SpaceShip
    101107            freezedSpaceShip_->addSpeedFactor(freezeFactor_);
    102108        }
     
    106112    }
    107113
     114    /**
     115    @brief
     116        This method is called by the timer. It gives back the original engine strength to the hit SpaceShip.
     117    */
    108118    void IceGunFreezer::stopFreezing()
    109119    {
Note: See TracChangeset for help on using the changeset viewer.