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/DronePickup.h

    r7456 r7541  
    3939
    4040#include <string>
    41 #include <worldentities/pawns/Pawn.h>
    42 #include <worldentities/Drone.h>
    43 
    44 #include "worldentities/StaticEntity.h"
    4541
    4642#include "pickup/Pickup.h"
     
    4945namespace orxonox {
    5046
     47    /**
     48    @brief
     49        The DronePickup adds a Drone to the Pawn upon being picked up.
     50        It can be used in XML as follows:
     51        @code
     52        <DronePickup droneTemplate="myDroneTemplate" />
     53        @endcode
     54        Where <em>droneTemplate</em> specifies a @ref orxonox::Template "Template" based on which the Drone is created.
    5155
     56    @author
     57        Lukas Gassner
     58
     59    @ingroup PickupItems
     60    */
    5261    class _PickupExport DronePickup : public Pickup, public Tickable
    5362    {
     
    6271            virtual void clone(OrxonoxClass*& item); //!< Creates a duplicate of the input OrxonoxClass.
    6372
    64             void setDroneTemplate(std::string templatename);
    65             const std::string& getDroneTemplate() const;
     73            void setDroneTemplate(std::string templatename); //!< Set the droneTemplate.
     74            const std::string& getDroneTemplate() const; //!< Get the name of the droneTemplate.
    6675
    6776        protected:
     
    7079        private:
    7180            void initialize(void); //!< Initializes the member variables.
    72             std::string droneTemplate_;
     81            std::string droneTemplate_; //!< The name of the template, based upon which the Drone is created.
    7382            Pawn* carrierToPawnHelper(void); //!< Helper to transform the PickupCarrier to a Pawn, and throw an error message if the conversion fails.
    7483
Note: See TracChangeset for help on using the changeset viewer.