Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

Some more documentation.

File:
1 edited

Legend:

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

    r7163 r7541  
    3333
    3434#include "DronePickup.h"
    35 #include "worldentities/Drone.h"
    36 #include "controllers/DroneController.h"
     35
     36#include <sstream>
    3737
    3838#include "core/CoreIncludes.h"
     
    4040#include "util/StringUtils.h"
    4141
     42#include "controllers/DroneController.h"
     43#include "pickup/PickupIdentifier.h"
    4244#include "worldentities/pawns/Pawn.h"
    43 #include "pickup/PickupIdentifier.h"
    44 
    45 #include <sstream>
     45#include "worldentities/Drone.h"
     46#include "worldentities/StaticEntity.h"
    4647
    4748namespace orxonox
     
    104105    }
    105106
     107    /**
     108    @brief
     109        Set the droneTemplate.
     110    @param templatename
     111        The name of the Template to e set.
     112    */
    106113    void DronePickup::setDroneTemplate(std::string templatename){
    107114        droneTemplate_ = templatename;
    108115    }
    109116
     117    /**
     118    @brief
     119        Get the name of the droneTemplate.
     120    @return
     121        Returns the name of the droneTemplate.
     122    */
    110123    const std::string& DronePickup::getDroneTemplate() const
    111124    {
     
    121134        SUPER(DronePickup, changedUsed);
    122135
    123         //! If the pickup is not picked up nothing must be done.
     136        // If the pickup is not picked up nothing must be done.
    124137        if(!this->isPickedUp())
    125138            return;
    126139
    127         //! If the pickup has transited to used.
     140        // If the pickup has transited to used.
    128141        if(this->isUsed())
    129142        {
    130143
    131144                Pawn* pawn = this->carrierToPawnHelper();
    132                 if(pawn == NULL) //!< If the PickupCarrier is no Pawn, then this pickup is useless and therefore is destroyed.
     145                if(pawn == NULL) // If the PickupCarrier is no Pawn, then this pickup is useless and therefore is destroyed.
    133146                    this->Pickupable::destroy();
    134147
     
    147160                drone->setPosition(spawnPosition);
    148161
    149                 //! The pickup has been used up.
     162                // The pickup has been used up.
    150163                this->setUsed(false);
    151164        }
    152165        else
    153166        {
    154             //! If either the pickup can only be used once or it is continuous and used up, it is destroyed upon setting it to unused.
     167            // If either the pickup can only be used once or it is continuous and used up, it is destroyed upon setting it to unused.
    155168            if(this->isOnce() || (this->isContinuous() ))
    156169            {
Note: See TracChangeset for help on using the changeset viewer.