Changeset 6475 for code/branches/pickup3/src/modules/pickup/DroppedPickup.h
- Timestamp:
- Mar 5, 2010, 6:26:54 PM (15 years ago)
- File:
-
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
code/branches/pickup3/src/modules/pickup/DroppedPickup.h
r6466 r6475 23 23 * Daniel 'Huty' Haggenmueller 24 24 * Co-authors: 25 * ...25 * Damian 'Mozork' Frick 26 26 * 27 27 */ … … 29 29 /** 30 30 @file 31 @brief Definition of DroppedItem31 @brief Definition of the DroppedPickup class. 32 32 */ 33 33 34 #ifndef _Dropped Item_H__35 #define _Dropped Item_H__34 #ifndef _DroppedPickup_H__ 35 #define _DroppedPickup_H__ 36 36 37 37 #include "PickupPrereqs.h" … … 41 41 namespace orxonox 42 42 { 43 class _OrxonoxExport DroppedItem : public PickupSpawner 43 44 /** 45 @brief 46 Special PickupSpawner that is created whe a Pickupable is dropped. It just spawns one pickup, the one that was dropped. 47 @author 48 Daniel 'Huty' Haggenmueller 49 Damian 'Mozork' Frick 50 */ 51 class _OrxonoxExport DroppedPickup : public PickupSpawner 44 52 { 45 53 public: 46 Dropped Item(BaseObject* creator);47 Dropped Item(BaseObject* creator, Pickupable* item, const Vector3& position, float triggerDistance);48 virtual ~Dropped Item();54 DroppedPickup(BaseObject* creator); //!< Default constructor. 55 DroppedPickup(BaseObject* creator, Pickupable* pickup, const Vector3& position, float triggerDistance = 10.0); //!< Constructor. 56 virtual ~DroppedPickup(); //!< Destructor. 49 57 50 58 protected: 51 virtual Pickupable* getPickup(void); 59 virtual Pickupable* getPickup(void); //!< Creates the Pickupable that is going to get picked up. 52 60 53 61 private: 54 void initialize(void); 55 void createDrop(const Vector3& position); 62 void initialize(void); //!< Initializes the member variables of the object. 56 63 57 bool gotPickedUp_; 64 bool gotPickedUp_; //!< Whether the pickup got picked up or not. 58 65 59 66 }; 60 67 } 61 68 62 #endif /* _Dropped Item_H__ */69 #endif /* _DroppedPickup_H__ */
Note: See TracChangeset
for help on using the changeset viewer.