Last change
on this file since 10771 was
10618,
checked in by bknecht, 18 years ago
|
merged cleanup into trunk (only improvements)
|
File size:
555 bytes
|
Line | |
---|
1 | /*! |
---|
2 | * @file extendable.h |
---|
3 | * @brief Interface for Worldentities that can pick up powerups. |
---|
4 | */ |
---|
5 | |
---|
6 | #ifndef _EXTENDABLE_H |
---|
7 | #define _EXTENDABLE_H |
---|
8 | |
---|
9 | #include "base_object.h" |
---|
10 | |
---|
11 | // FORWARD DECLARATION |
---|
12 | class PowerUp; |
---|
13 | |
---|
14 | |
---|
15 | #include "items/power_ups/power_up.h" |
---|
16 | //! A class for Extendable Entities |
---|
17 | class Extendable : virtual public BaseObject { |
---|
18 | ObjectListDeclaration(Extendable); |
---|
19 | |
---|
20 | public: |
---|
21 | virtual bool pickup(PowerUp* powerUp) { return false; }; |
---|
22 | |
---|
23 | protected: |
---|
24 | Extendable() { this->registerObject(this, Extendable::_objectList); }; |
---|
25 | }; |
---|
26 | |
---|
27 | #endif /* _EXTENDABLE_H */ |
---|
Note: See
TracBrowser
for help on using the repository browser.