Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/branches/powerups/src/world_entities/extendable.h @ 6269

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

orxonox/branches: Power-UPS:
added capability to Collide with a PowerUP. This has been added through the conjunction between:

  1. Model* a= new Model
  2. this→setModel(a)
  3. this→buildObbTree(n);

Now the Sphere is loaded easily, and fast
Also the draw algorithm is as modern, as it should be :)

File size: 536 bytes
Line 
1/*!
2 * @file proto_class.h
3 * @brief Interface for Worldentities that can picku 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#include "power_ups/power_up.h"
15
16//! A class for ...
17class Extendable : virtual public BaseObject {
18
19  public:
20   //   virtual ~Extendable();
21   virtual bool pickup(PowerUp* powerUp) { return false; };
22
23  protected:
24    Extendable() { this->setClassID(CL_EXTENDABLE, "Extendable"); };
25
26  private:
27
28};
29
30#endif /* _EXTENDABLE_H */
Note: See TracBrowser for help on using the repository browser.