source:
orxonox.OLD/trunk/src/world_entities/extendable.h
@
10383
Last change on this file since 10383 was 9869, checked in by bensch, 18 years ago | |
---|---|
File size: 549 bytes |
Rev | Line | |
---|---|---|
[4838] | 1 | /*! |
[9869] | 2 | * @file extendable.h |
3 | * @brief Interface for Worldentities that can pick up powerups. | |
[3245] | 4 | */ |
[1853] | 5 | |
[5871] | 6 | #ifndef _EXTENDABLE_H |
7 | #define _EXTENDABLE_H | |
[1853] | 8 | |
[5965] | 9 | #include "base_object.h" |
10 | ||
[4838] | 11 | // FORWARD DECLARATION |
[5965] | 12 | class PowerUp; |
[3543] | 13 | |
[9869] | 14 | |
[5985] | 15 | #include "power_ups/power_up.h" |
[9869] | 16 | //! A class for Extendable Entities |
[5965] | 17 | class Extendable : virtual public BaseObject { |
[9869] | 18 | ObjectListDeclaration(Extendable); |
[1853] | 19 | |
[6282] | 20 | public: |
[5985] | 21 | virtual bool pickup(PowerUp* powerUp) { return false; }; |
[1853] | 22 | |
[6282] | 23 | protected: |
[9869] | 24 | Extendable() { this->registerObject(this, Extendable::_objectList); }; |
[1853] | 25 | }; |
26 | ||
[5871] | 27 | #endif /* _EXTENDABLE_H */ |
Note: See TracBrowser
for help on using the repository browser.