Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/branches/new_class_id/src/world_entities/extendable.h @ 9772

Last change on this file since 9772 was 9715, checked in by bensch, 18 years ago

renamed newclassid to classid and newobjectlist to objectlist

File size: 549 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
12class PowerUp;
13
14
15#include "power_ups/power_up.h"
16//! A class for Extendable Entities
17class 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.