- Timestamp:
- Jun 9, 2010, 9:32:58 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/presentation3/src/orxonox/interfaces/PickupCarrier.h
r7034 r7127 68 68 friend class Pickupable; 69 69 friend class PickupManager; 70 //! Friends. 70 //! Friends. 71 71 friend class Pickup; 72 72 friend class HealthPickup; … … 170 170 */ 171 171 virtual const Vector3& getCarrierPosition(void) = 0; 172 172 173 173 /** 174 174 @brief Get the name of this PickupCarrier. … … 176 176 */ 177 177 const std::string& getCarrierName(void) { return this->carrierName_; } // tolua_export 178 179 protected: 178 179 protected: 180 180 /** 181 181 @brief Get all direct children of this PickupSpawner. … … 198 198 std::set<Pickupable*>& getPickups(void) 199 199 { return this->pickups_; } 200 200 201 201 /** 202 202 @brief Set the name of this PickupCarrier. … … 206 206 void setCarrierName(const std::string& name) 207 207 { this->carrierName_ = name; } 208 208 209 209 private: 210 210 std::set<Pickupable*> pickups_; //!< The list of Pickupables carried by this PickupCarrier. 211 211 std::string carrierName_; //!< The name of the PickupCarrier, as displayed in the PickupInventory. 212 212 213 213 /** 214 214 @brief Get the number of carrier children this PickupCarrier has. … … 222 222 return size; 223 223 } 224 224 225 225 /** 226 226 @brief Get the index-th child of this PickupCarrier. … … 237 237 return carrier; 238 238 } 239 239 240 240 /** 241 241 @brief Get the number of Pickupables this PickupCarrier carries. … … 244 244 unsigned int getNumPickups(void) 245 245 { return this->pickups_.size(); } 246 246 247 247 /** 248 248 @brief Get the index-th Pickupable of this PickupCarrier. … … 259 259 return *it; 260 260 } 261 261 262 262 }; 263 263 }
Note: See TracChangeset
for help on using the changeset viewer.