- Timestamp:
- Jun 9, 2010, 9:32:58 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/presentation3/src/modules/pickup/items/MetaPickup.cc
r6709 r7127 40 40 41 41 namespace orxonox { 42 42 43 43 CreateFactory(MetaPickup); 44 44 45 45 //! Setting the static variables to their values. 46 46 /*static*/ const std::string MetaPickup::metaTypeNone_s = "none"; 47 47 /*static*/ const std::string MetaPickup::metaTypeUse_s = "use"; 48 48 /*static*/ const std::string MetaPickup::metaTypeDrop_s = "drop"; 49 49 50 50 /** 51 51 @brief … … 55 55 { 56 56 RegisterObject(MetaPickup); 57 57 58 58 this->initialize(); 59 59 } 60 60 61 61 /** 62 62 @brief … … 65 65 MetaPickup::~MetaPickup() 66 66 { 67 68 } 69 67 68 } 69 70 70 /** 71 71 @brief … … 75 75 { 76 76 this->addTarget(ClassIdentifier<PickupCarrier>::getIdentifier()); 77 77 78 78 this->setActivationTypeDirect(pickupActivationType::immediate); 79 79 this->setDurationTypeDirect(pickupDurationType::once); 80 80 this->metaType_ = pickupMetaType::none; 81 81 } 82 82 83 83 /** 84 84 @brief … … 91 91 this->pickupIdentifier_->addParameter(type, val); 92 92 } 93 93 94 94 /** 95 95 @brief … … 99 99 { 100 100 SUPER(MetaPickup, XMLPort, xmlelement, mode); 101 101 102 102 XMLPortParam(MetaPickup, "metaType", setMetaType, getMetaType, xmlelement, mode); 103 103 104 104 this->initializeIdentifier(); 105 105 } 106 106 107 107 /** 108 108 @brief … … 113 113 { 114 114 SUPER(MetaPickup, changedUsed); 115 115 116 116 //! If the MetaPickup transited to used. 117 117 if(this->isUsed()) … … 144 144 } 145 145 } 146 146 147 147 /** 148 148 @brief … … 155 155 if(item == NULL) 156 156 item = new MetaPickup(this); 157 157 158 158 SUPER(MetaPickup, clone, item); 159 159 160 160 MetaPickup* pickup = dynamic_cast<MetaPickup*>(item); 161 161 pickup->setMetaTypeDirect(this->getMetaTypeDirect()); 162 162 163 163 pickup->initializeIdentifier(); 164 164 } 165 165 166 166 /** 167 167 @brief … … 184 184 } 185 185 } 186 186 187 187 /** 188 188 @brief … … 206 206 } 207 207 } 208 208 209 209 }
Note: See TracChangeset
for help on using the changeset viewer.