Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Oct 14, 2010, 12:55:59 PM (14 years ago)
Author:
dafrick
Message:

Some more documentation.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/trunk/src/modules/pickup/items/HealthPickup.cc

    r7163 r7541  
    142142        {
    143143            Pawn* pawn = this->carrierToPawnHelper();
    144             if(pawn == NULL) //!< If the PickupCarrier is no Pawn, then this pickup is useless and therefore is destroyed.
     144            if(pawn == NULL) // If the PickupCarrier is no Pawn, then this pickup is useless and therefore is destroyed.
    145145                this->Pickupable::destroy();
    146146
    147             //! Calculate the health that is added this tick.
     147            // Calculate the health that is added this tick.
    148148            float health = dt*this->getHealthRate();
    149149            if(health > this->getHealth())
    150150                health = this->getHealth();
    151             //! Calculate the health the Pawn will have once the health is added.
     151            // Calculate the health the Pawn will have once the health is added.
    152152            float fullHealth = pawn->getHealth() + health;
    153153            this->setHealth(this->getHealth()-health);
     
    174174            }
    175175
    176             //! If all health has been transfered.
     176            // If all health has been transferred.
    177177            if(this->getHealth() == 0)
    178178            {
     
    190190        SUPER(HealthPickup, changedUsed);
    191191
    192         //! If the pickup is not picked up nothing must be done.
     192        // If the pickup is not picked up nothing must be done.
    193193        if(!this->isPickedUp()) //TODO: Needed?
    194194            return;
    195195
    196         //! If the pickup has transited to used.
     196        // If the pickup has transited to used.
    197197        if(this->isUsed())
    198198        {
     
    200200            {
    201201                Pawn* pawn = this->carrierToPawnHelper();
    202                 if(pawn == NULL) //!< If the PickupCarrier is no Pawn, then this pickup is useless and therefore is destroyed.
     202                if(pawn == NULL) // If the PickupCarrier is no Pawn, then this pickup is useless and therefore is destroyed.
    203203                    this->Pickupable::destroy();
    204204
     
    227227                }
    228228
    229                 //! The pickup has been used up.
     229                // The pickup has been used up.
    230230                this->setUsed(false);
    231231            }
     
    253253            }
    254254
    255             //! If either the pickup can only be used once or it is continuous and used up, it is destroyed upon setting it to unused.
     255            // If either the pickup can only be used once or it is continuous and used up, it is destroyed upon setting it to unused.
    256256            if(this->isOnce() || (this->isContinuous() && this->getHealth() == 0))
    257257            {
Note: See TracChangeset for help on using the changeset viewer.