- Timestamp:
- Mar 22, 2010, 10:45:09 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/ppspickups1/src/modules/pickup/items/SpeedPickup.h
r6574 r6607 57 57 Eric Beier 58 58 */ 59 class _PickupExport SpeedPickup : public Pickup , public Tickable59 class _PickupExport SpeedPickup : public Pickup 60 60 { 61 61 public: … … 65 65 66 66 virtual void XMLPort(Element& xmlelement, orxonox::XMLPort::Mode mode); //!< Method for creating a HealthPickup object through XML. 67 virtual void tick(float dt); //!< Is called every tick.68 67 69 68 virtual void changedUsed(void); //!< Is called when the pickup has transited from used to unused or the other way around. … … 80 79 void initializeIdentifier(void); //!< Initializes the PickupIdentifier of this pickup. 81 80 82 void setDuration(float duration); //!< Sets the duration81 void setDuration(float duration); 83 82 void setSpeedAdd(float speedAdd); 84 83 void setSpeedMultiply(float speedMultiply); 85 84 86 87 85 private: 88 86 void initialize(void); //!< Initializes the member variables. 89 Pawn* carrierToPawnHelper(void); //!< Helper to transform the PickupCarrier to a Pawn, and throw an error message if the conversion fails. 87 void PickupTimerCallBack(void); //!< Function that gets called when timer ends. 88 Engine* carrierToEngineHelper(void); //!< Helper to transform the PickupCarrier to a Pawn, and throw an error message if the conversion fails. 90 89 91 90 float duration_; //!< The health that is transferred to the Pawn.
Note: See TracChangeset
for help on using the changeset viewer.