- Timestamp:
- Apr 13, 2010, 9:07:08 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/ppspickups2/src/modules/pickup/items/InvisiblePickup.h
r6641 r6708 64 64 virtual void clone(OrxonoxClass*& item); //!< Creates a duplicate of the input OrxonoxClass. 65 65 66 67 @brief Checks w ether the Pawn is invisible.66 /** 67 @brief Checks whether the Pawn is invisible. 68 68 @return Returns if the Pawn is invisible. 69 69 */ 70 70 inline bool getInvisibility(bool) 71 71 { return this->invisible_; } 72 73 {return this->duration_;}72 inline float getDuration() 73 { return this->duration_; } 74 74 75 75 protected: 76 bool setInvisible(bool invisibility); //!< Set the Pawn to be invisible or visible again. 77 void setDuration(float duration); 78 void initializeIdentifier(void); 76 bool setInvisible(bool invisibility); //!< Set the Pawn to be invisible or visible again. 77 void setDuration(float duration); 78 void initializeIdentifier(void); 79 virtual void pickupTimerCallback(void); //!< Function that gets called when the timer ends. 79 80 80 81 private: 81 82 void initialize(void); //!< Initializes the member variables. 82 83 Pawn* carrierToPawnHelper(void); //!< Helper to transform the PickupCarrier to a Pawn, and throw an error message if the conversion fails. 83 void PickupTimerCallBack(void); //!< Function that gets called when the timer ends. 84 bool invisible_; //!< Helper to remember wether the Pawn is invisible. 85 float duration_; //! Duration of invisibility. 84 bool invisible_; //!< Helper to remember wether the Pawn is invisible. 85 float duration_; //! Duration of invisibility. 86 86 }; 87 87 }
Note: See TracChangeset
for help on using the changeset viewer.