Changeset 6421 for code/branches/pickup3/src/modules/pickup/PickupSpawner.h
- Timestamp:
- Dec 26, 2009, 10:06:54 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/pickup3/src/modules/pickup/PickupSpawner.h
r6419 r6421 57 57 virtual ~PickupSpawner(); 58 58 59 virtual void changedActivity(); //!< Invoked when activity has changed (set visibilty).59 //virtual void changedActivity(); //!< Invoked when activity has changed (set visibilty). 60 60 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode); //!< Method for creating a PickupSpawner through XML. 61 61 virtual void tick(float dt); … … 87 87 { this->respawnTime_ = time; } 88 88 89 89 /** 90 @brief Get the maximum number of items that will be spawned by this PickupSpawner. 91 @return Returns the maximum number of items spawned by this PickupSpawner. 92 */ 90 93 inline int getMaxSpawnedItems(void) 91 94 { return this->maxSpawnedItems_; } … … 95 98 virtual Pickupable* getPickup(void); 96 99 97 void addPickupable(Pickupable* pickup);98 Pickupable* getPickupable(void);100 void setPickupable(Pickupable* pickup); 101 const Pickupable* getPickupable(void); 99 102 100 103 void decrementSpawnsRemaining(void); 104 105 Pickupable* pickup_; //!< The pickup to be spawned. 101 106 102 107 private: … … 105 110 void trigger(Pawn* pawn); //!< Method called when a Pawn is close enough. 106 111 void respawnTimerCallback(); //!< Method called when the timer runs out. 107 108 109 Pickupable* pickup_;110 112 111 113 int maxSpawnedItems_; //!< Maximum number of items spawned by this PickupSpawner.
Note: See TracChangeset
for help on using the changeset viewer.