Last change
on this file since 5463 was
5458,
checked in by bensch, 19 years ago
|
orxonox/trunk: a second power-up (lasers)
|
File size:
704 bytes
|
Line | |
---|
1 | /*! |
---|
2 | * @file laser_power_up.h |
---|
3 | * @brief A class representing a PowerUp in the world. |
---|
4 | */ |
---|
5 | |
---|
6 | #ifndef _LASER_POWER_UP_H |
---|
7 | #define _LASER_POWER_UP_H |
---|
8 | |
---|
9 | #include "power_up.h" |
---|
10 | |
---|
11 | class LaserPowerUp : public PowerUp { |
---|
12 | |
---|
13 | public: |
---|
14 | LaserPowerUp(); |
---|
15 | LaserPowerUp(const TiXmlElement* root); |
---|
16 | virtual ~LaserPowerUp (); |
---|
17 | |
---|
18 | virtual void LaserPowerUp::collidesWith(WorldEntity* entity, const Vector& location); |
---|
19 | virtual void tick(float dt); |
---|
20 | virtual void draw(); |
---|
21 | |
---|
22 | private: |
---|
23 | void init(); |
---|
24 | void loadParams(const TiXmlElement* root); |
---|
25 | |
---|
26 | private: |
---|
27 | Vector rotation; |
---|
28 | float cycle; |
---|
29 | |
---|
30 | Model* sphereModel; |
---|
31 | Material* sphereMaterial; |
---|
32 | }; |
---|
33 | |
---|
34 | #endif /* _LASER_POWER_UP_H */ |
---|
Note: See
TracBrowser
for help on using the repository browser.