Last change
on this file since 10772 was
7954,
checked in by patrick, 18 years ago
|
trunk: merged the network branche back to trunk.
|
File size:
761 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 | /* FORWARD DEFINITION */ |
---|
12 | class Material; |
---|
13 | |
---|
14 | class LaserPowerUp : public PowerUp { |
---|
15 | |
---|
16 | public: |
---|
17 | LaserPowerUp(); |
---|
18 | LaserPowerUp(const TiXmlElement* root); |
---|
19 | virtual ~LaserPowerUp (); |
---|
20 | |
---|
21 | virtual void loadParams(const TiXmlElement* root); |
---|
22 | |
---|
23 | |
---|
24 | virtual void LaserPowerUp::collidesWith(WorldEntity* entity, const Vector& location); |
---|
25 | virtual void tick(float dt); |
---|
26 | virtual void draw() const; |
---|
27 | |
---|
28 | private: |
---|
29 | void init(); |
---|
30 | |
---|
31 | private: |
---|
32 | Vector rotation; |
---|
33 | float cycle; |
---|
34 | |
---|
35 | Model* sphereModel; |
---|
36 | Material* sphereMaterial; |
---|
37 | }; |
---|
38 | |
---|
39 | #endif /* _LASER_POWER_UP_H */ |
---|
Note: See
TracBrowser
for help on using the repository browser.