- Timestamp:
- Jul 8, 2012, 5:33:03 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/presentation2012merge/src/modules/pickup/Pickup.h
r8108 r9313 109 109 @return Returns the activation type of the Pickup. 110 110 */ 111 inline pickupActivationType::Value getActivationType Direct(void) const111 inline pickupActivationType::Value getActivationType(void) const 112 112 { return this->activationType_; } 113 113 /** … … 115 115 @return Returns the duration type of the Pickup. 116 116 */ 117 inline pickupDurationType::Value getDurationType Direct(void) const117 inline pickupDurationType::Value getDurationType(void) const 118 118 { return this->durationType_; } 119 119 120 const std::string& getActivationType (void) const; //!< Get the activation type of the Pickup.121 const std::string& getDurationType (void) const; //!< Get the duration type of the Pickup.120 const std::string& getActivationTypeAsString(void) const; //!< Get the activation type of the Pickup. 121 const std::string& getDurationTypeAsString(void) const; //!< Get the duration type of the Pickup. 122 122 123 123 /** … … 126 126 */ 127 127 inline bool isImmediate(void) const 128 { return this->getActivationType Direct() == pickupActivationType::immediate; }128 { return this->getActivationType() == pickupActivationType::immediate; } 129 129 /** 130 130 @brief Get whether the activation type is 'onUse'. … … 132 132 */ 133 133 inline bool isOnUse(void) const 134 { return this->getActivationType Direct() == pickupActivationType::onUse; }134 { return this->getActivationType() == pickupActivationType::onUse; } 135 135 /** 136 136 @brief Get whether the duration type is 'once'. … … 138 138 */ 139 139 inline bool isOnce(void) const 140 { return this->getDurationType Direct() == pickupDurationType::once; }140 { return this->getDurationType() == pickupDurationType::once; } 141 141 /** 142 142 @brief Get whether the duration type is 'continuous'. … … 144 144 */ 145 145 inline bool isContinuous(void) const 146 { return this->getDurationType Direct() == pickupDurationType::continuous; }146 { return this->getDurationType() == pickupDurationType::continuous; } 147 147 148 148 virtual void changedPickedUp(void); //!< Should be called when the pickup has transited from picked up to dropped or the other way around. … … 158 158 @param type The activation type of the Pickup. 159 159 */ 160 inline void setActivationType Direct(pickupActivationType::Value type)160 inline void setActivationType(pickupActivationType::Value type) 161 161 { this->activationType_ = type; } 162 162 /** … … 164 164 @param type The duration type of the Pickup. 165 165 */ 166 inline void setDurationType Direct(pickupDurationType::Value type)166 inline void setDurationType(pickupDurationType::Value type) 167 167 { this->durationType_ = type; } 168 168 169 void setActivationType (const std::string& type); //!< Set the activation type of the Pickup.170 void setDurationType (const std::string& type); //!< Set the duration type of the Pickup.169 void setActivationTypeAsString(const std::string& type); //!< Set the activation type of the Pickup. 170 void setDurationTypeAsString(const std::string& type); //!< Set the duration type of the Pickup. 171 171 172 172 private:
Note: See TracChangeset
for help on using the changeset viewer.