Last change
on this file since 6040 was
6040,
checked in by manuel, 18 years ago
|
hopefully we see some colored spheres arounf powerups now
|
File size:
535 bytes
|
Line | |
---|
1 | /*! |
---|
2 | * @file power_up.h |
---|
3 | * @brief A class representing a PowerUp in the world. |
---|
4 | */ |
---|
5 | |
---|
6 | #ifndef _POWER_UP_H |
---|
7 | #define _POWER_UP_H |
---|
8 | |
---|
9 | #include "world_entity.h" |
---|
10 | |
---|
11 | class Material; |
---|
12 | |
---|
13 | class PowerUp : public WorldEntity { |
---|
14 | |
---|
15 | public: |
---|
16 | void loadParams(const TiXmlElement* root); |
---|
17 | void collidesWith (WorldEntity* entity, const Vector& location); |
---|
18 | |
---|
19 | void draw(); |
---|
20 | |
---|
21 | protected: |
---|
22 | PowerUp(float r, float g, float b); |
---|
23 | virtual ~PowerUp (); |
---|
24 | virtual void hide(); |
---|
25 | |
---|
26 | static Model* sphereModel; |
---|
27 | |
---|
28 | private: |
---|
29 | Material* sphereMaterial; |
---|
30 | }; |
---|
31 | |
---|
32 | #endif /* _POWER_UP_H */ |
---|
Note: See
TracBrowser
for help on using the repository browser.