Changeset 7544 for code/trunk/src/modules/pickup/items/InvisiblePickup.h
- Timestamp:
- Oct 15, 2010, 8:14:03 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/src/modules/pickup/items/InvisiblePickup.h
r7541 r7544 65 65 InvisiblePickup(BaseObject* creator); //!< Constructor. 66 66 virtual ~InvisiblePickup(); //!< Destructor. 67 67 68 virtual void XMLPort(Element& xmlelement, orxonox::XMLPort::Mode mode); //!< Method for creating a HealthPickup object through XML. 68 69 virtual void changedUsed(void); //!< Is called when the pickup has transited from used to unused or the other way around. … … 75 76 inline bool getInvisibility(bool) 76 77 { return this->invisible_; } 77 inline float getDuration() 78 /** 79 @brief Get the time the InvisibilityPickup lasts. 80 @return Returns the time in seconds the InvisibiltyPickup lasts. 81 */ 82 inline float getDuration(void) 78 83 { return this->duration_; } 79 84 80 85 protected: 86 void initializeIdentifier(void); 87 81 88 bool setInvisible(bool invisibility); //!< Set the Pawn to be invisible or visible again. 82 void setDuration(float duration); 83 void initializeIdentifier(void); 84 void pickupTimerCallback(void); //!< Function that gets called when the timer ends.89 void setDuration(float duration); //!< Sets the time the InvisibilityPickup will last. 90 91 void pickupTimerCallback(void); //!< Helper method. Is called by the Timer as soon as it expires. 85 92 86 93 private:
Note: See TracChangeset
for help on using the changeset viewer.