Changeset 7541 for code/trunk/src/modules/pickup/items/DronePickup.h
- Timestamp:
- Oct 14, 2010, 12:55:59 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/src/modules/pickup/items/DronePickup.h
r7456 r7541 39 39 40 40 #include <string> 41 #include <worldentities/pawns/Pawn.h>42 #include <worldentities/Drone.h>43 44 #include "worldentities/StaticEntity.h"45 41 46 42 #include "pickup/Pickup.h" … … 49 45 namespace orxonox { 50 46 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. 51 55 56 @author 57 Lukas Gassner 58 59 @ingroup PickupItems 60 */ 52 61 class _PickupExport DronePickup : public Pickup, public Tickable 53 62 { … … 62 71 virtual void clone(OrxonoxClass*& item); //!< Creates a duplicate of the input OrxonoxClass. 63 72 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. 66 75 67 76 protected: … … 70 79 private: 71 80 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. 73 82 Pawn* carrierToPawnHelper(void); //!< Helper to transform the PickupCarrier to a Pawn, and throw an error message if the conversion fails. 74 83
Note: See TracChangeset
for help on using the changeset viewer.