Last change
on this file since 8375 was
8375,
checked in by ssgier, 13 years ago
|
added source files for ShrinkPickup
|
File size:
885 bytes
|
Rev | Line | |
---|
[8375] | 1 | #ifndef _ShrinkPickup_H__ |
---|
| 2 | #define _ShrinkPickup_H__ |
---|
| 3 | |
---|
| 4 | #include "pickup/PickupPrereqs.h" |
---|
| 5 | |
---|
| 6 | #include <string> |
---|
| 7 | |
---|
| 8 | #include "pickup/Pickup.h" |
---|
| 9 | #include "tools/interfaces/Tickable.h" |
---|
| 10 | |
---|
| 11 | namespace orxonox { |
---|
| 12 | |
---|
| 13 | /** |
---|
| 14 | @author |
---|
| 15 | Sandro Sgier |
---|
| 16 | |
---|
| 17 | @ingroup PickupItems |
---|
| 18 | */ |
---|
| 19 | class _PickupExport ShrinkPickup : public Pickup, public Tickable |
---|
| 20 | { |
---|
| 21 | public: |
---|
| 22 | ShrinkPickup(BaseObject* creator); //!< Constructor. |
---|
| 23 | virtual ~ShrinkPickup(); //!< Destructor. |
---|
| 24 | virtual void changedUsed(void); //!< Is called when the pickup has transited from used to unused or the other way around. |
---|
| 25 | virtual void clone(OrxonoxClass*& item); //!< Creates a duplicate of the input OrxonoxClass. |
---|
| 26 | |
---|
| 27 | private: |
---|
| 28 | void initialize(void); |
---|
| 29 | Pawn* carrierToPawnHelper(void); |
---|
| 30 | Pawn* pawn; |
---|
| 31 | Timer durationTimer; |
---|
| 32 | void terminate(void); |
---|
| 33 | |
---|
| 34 | |
---|
| 35 | }; |
---|
| 36 | } |
---|
| 37 | |
---|
| 38 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.